function ulong CreateMutexA (ulong lpMutexAttributes, int bInitialOwner, ref string lpName) library "kernel32.dll"
string ls_mutex_name
if handle(GetApplication (), false) <> 0 then
ls_mutex_name = app_setupini+ char(0)
ll_mutex=createmutexa(0,0,ls_mutex_name)
ll_err=GetLastError()
if ll_err = 183 then
MessageBox ("提示信息","程序已经运行了!")
halt;
end if
end if