Вниз
Скачать: CL | DM;

что не так?   Найти похожие ветки 

 
thoth ©   (2004-10-01 12:52) [0]

Хочу использовать функцию:
function WinExecAndWait(Path: PChar; Visibility: Word): Word;
var
 InstanceID: THandle;
 Msg: TMsg;
begin
 InstanceID := WinExec(Path, Visibility);
 if InstanceID < 32 then { значение меньше чем 32 указывает на ошибку }
   WinExecAndWait := InstanceID
 else
   repeat
     while PeekMessage(Msg, 0, 0, 0, pm_Remove) do
     begin
       if Msg.message = wm_Quit then
         Halt(Msg.WParam);
       TranslateMessage(Msg);
       DispatchMessage(Msg);
     end;
   until
     GetModuleUsage(InstanceID) = 0;
 WinExecAndWait := 0;
end;

Но при компиляции выдает сообщение:  Undeclared identifier: "GetModuleUsage"

Что я забыл?


 
MBo ©   (2004-10-01 13:08) [1]

Используй лучше CreateProcess, пример есть в FAQ



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: -0.977 c
4-1096778093
XProger
2004-10-03 08:34
2004.11.07
MDI на Win API


3-1097061190
Its
2004-10-06 15:13
2004.11.07
SQL - запрос


14-1098408899
Думкин
2004-10-22 05:34
2004.11.07
С днем рождения! 22 октября


1-1098732917
Colonel
2004-10-25 23:35
2004.11.07
Меню в Desktop


14-1098073504
Aldor
2004-10-18 08:25
2004.11.07
Application failed to initialize properly (адрес).




   Наверх