#define MUTEX_NAME _T("shit") //unicode环境下
/*#define MUTEX_NAME “shit" //多字节环境下*/
if (NULL == OpenMutex(MUTEX_ALL_ACCESS, FALSE, MUTEX_NAME)) { CreateMutex(NULL, FALSE, MUTEX_NAME); } else { exit (0); }