HANDLE hMutex=CreateMutex(NULL,TRUE,"HDZBUkeyDoctorTool");
if(hMutex)
{
if(ERROR_ALREADY_EXISTS==GetLastError())
{
MessageBox(NULL, "程序已在运行中!", "盾医生:", NULL);
return FALSE;
}
}
原文地址:https://www.cnblogs.com/2018shawn/p/9435895.html
时间: 2024-10-06 19:22:25