(Gast)
n/a Beiträge
|
Re: CreateMutex, komischer Fehler
12. Jul 2004, 13:14
Hier:
Delphi-Quellcode:
initialization
mHandle := CreateMutex(nil,True,'Name');
if (GetLastError = ERROR_ALREADY_EXISTS) then
begin
...
end
else ShowMessage ('Program is already running.');
halt;
end;
finalization
if mHandle <> 0 then CloseHandle(mHandle);
|
|
Zitat
|