Alibaba
06-10-2014, 07:29 AM
Hi guys,
has anybody an idea why my use of the OpenMutex function always returns 0:
prototype NUMBER kernel32.OpenMutex (NUMBER, BOOL, STRING);
nRetUD = UseDLL(sSystemFolder ^ "kernel32.dll");
svName = "{B45C9CA7-478C-455E-A84A-A516374CB2AC}";
bInheritHandle = TRUE;
nDesiredAccess = 1048576;
nHandle = OpenMutex(nDesiredAccess, bInheritHandle, svName);
If I call this DLL (OpenMutex) from InstallAware it is working and returning the handle for the mutex.
Or Anybody an other idea how to check if a program is running?
has anybody an idea why my use of the OpenMutex function always returns 0:
prototype NUMBER kernel32.OpenMutex (NUMBER, BOOL, STRING);
nRetUD = UseDLL(sSystemFolder ^ "kernel32.dll");
svName = "{B45C9CA7-478C-455E-A84A-A516374CB2AC}";
bInheritHandle = TRUE;
nDesiredAccess = 1048576;
nHandle = OpenMutex(nDesiredAccess, bInheritHandle, svName);
If I call this DLL (OpenMutex) from InstallAware it is working and returning the handle for the mutex.
Or Anybody an other idea how to check if a program is running?