HANDLE hMutex=CreateMutex(NULL,TRUE,"HDZBUkeyDoctorTool");
if(hMutex)
{
if(ERROR_ALREADY_EXISTS==GetLastError())
{
MessageBox(NULL, "程序已在运行中!", "盾医生:", NULL);
return FALSE;
}
}
HANDLE hMutex=CreateMutex(NULL,TRUE,"HDZBUkeyDoctorTool");
if(hMutex)
{
if(ERROR_ALREADY_EXISTS==GetLastError())
{
MessageBox(NULL, "程序已在运行中!", "盾医生:", NULL);
return FALSE;
}
}