Вниз
Скачать: 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.037 c
9-1088621303
kas-t
2004-06-30 22:48
2004.11.07
GLScene: плавное падение fps


1-1098447169
edge
2004-10-22 16:12
2004.11.07
TList.Free


1-1098377903
Kolan
2004-10-21 20:58
2004.11.07
ComboBox - Ctl3D


14-1098213648
KilkennyCat
2004-10-19 23:20
2004.11.07
Кто здесь?!


3-1097218453
Dush
2004-10-08 10:54
2004.11.07
Активные подключения к базе




   Наверх