标签:c style class blog code java
#include "stdafx.h" #include <Windows.h> #include <iostream> using namespace std; int _tmain (int argc, LPTSTR argv[]) { HANDLE h=CreateMutex(NULL,TRUE,"AAAAAAA"); if(GetLastError()==ERROR_ALREADY_EXISTS){ CloseHandle(h); return 0; } system("pause"); CloseHandle(h); return 0; }
CreateMutex实现只能打开一个客户端,布布扣,bubuko.com
标签:c style class blog code java
原文地址:http://www.cnblogs.com/duyy/p/3761049.html