如何检查程序只有一个运行实例?
有时候运行多个实例可能会造成错误,尤其是进程中有多个线程时。#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
cout << "In this process!\n";
HANDLE hMutex = CreateMutex(NULL, true, L"XOne...
原创
2018-07-04 15:02:52 ·
316 阅读 ·
0 评论