摘要:
//首先在InitInstance()函数中创建一个同步对象,如果(GetLastError()返回ERROR_ALREADY_EXISTS就表明存在 //一个应用实例了,返回false取消 // 创建同步对象//By cryfishhMutexOneInstantance=CreateMutex(NULL,TRUE,_T("PreventSecondInstance"));if(GetLastError()==ERROR_ALREADY_EXISTS) bFound=TRUE;if(hMutexOneInstantance) ReleaseMutex(hMutexOneI 阅读全文
posted @ 2011-03-20 16:25
情有独钟
阅读(210)
评论(0)
推荐(0)

浙公网安备 33010602011771号