HANDLE hMutex = CreateMutex(NULL,TRUE,_T("appName"));
if(hMutex)
{
if(ERROR_ALREADY_EXISTS == GetLastError())
//AfxMessageBox(_T("已经运行"));
}