Вниз
Скачать: 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.021 c
14-1098014046
Comp
2004-10-17 15:54
2004.11.07
Синхронизация времени с интернетом


1-1098447124
Wolffgang
2004-10-22 16:12
2004.11.07
Assigned?


14-1096950942
olookin
2004-10-05 08:35
2004.11.07
Прогнозы на 3-й тур Лиги Чемпионов


9-1089041642
Micke
2004-07-05 19:34
2004.11.07
Split Screen с DelphiX


14-1098087893
Vlad Oshin
2004-10-18 12:24
2004.11.07
Outlook 2003 and Outlook 2002 do not access to attachmen




   Наверх