摘要: #include<stdio.h> #include<Windows.h> BOOL IsAlreadyRun(){ HANDLE hMutex=NULL; hMutex=::CreateMutex(NULL,//改句柄不能由子进程继承 FALSE,//不属于任何线程 "lock1");//锁名称 阅读全文
posted @ 2022-01-12 18:45 磐正 阅读(41) 评论(0) 推荐(0)