|
发表于 2020-6-22 16:45:01
|
显示全部楼层
app的open写
ls_temp = '随便一个字符串'
gl_mutex = CreateMutex(0,0,ls_temp)
i = getlasterror()
if I = 183 and handle(GetApplication()) > 0 then
messagebox('信息','xx系统进程已在运行中!',exclamation!)
return
end if
函数声明
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"
|
|