#ifndef _DEBUG //防止游戏双开 /**//*g_hMutex = CreateMutex( NULL,TRUE,_T("MusicGod")); if( GetLastError() == ERROR_ALREADY_EXISTS ) g_bFound = TRUE; if( g_hMutex ) ReleaseMutex( g_hMutex ); if( g_bFound ) { MessageBox( 0,"已有一个音乐无限正在运行",0,0 ); return 0; }*/ g_hMutex = CreateMutex( NULL, TRUE, _T("MusicGod")); if (GetLastError() == ERROR_ALREADY_EXISTS) ...{ MessageBox(0, "已有一个音乐无限正在运行",0,0); if(g_hMutex) ReleaseMutex(g_hMutex); return 0; }#endif