|
app open write
ls_temp ='A random string'
gl_mutex = CreateMutex(0,0,ls_temp)
i = getlasterror()
if I = 183 and handle(GetApplication())> 0 then
messagebox('Message','xx system process is already running!', exclamation!)
return
end if
Function declaration
function ulong CreateMutex (ulong lpMutexAttributes, int bInitialOwner, ref string lpName) library "kernel32.dll" ALIAS FOR "CreateMutexA"
function ulong GetLastError () library "kernel32.dll"
function ulong ReleaseMutex(LONG H) library "kernel32.dll" |
|