|
//By cryfish hMutexOneInstantance=CreateMutex(NULL,TRUE,_T("PreventSecondInstance")); if(GetLastError()==ERROR_ALREADY_EXISTS) bFound=TRUE; if(hMutexOneInstantance) ReleaseMutex(hMutexOneInstantance); if (bFound==TRUE) { ::AfxMessageBox("You have Run one"); return false; }
|