vc++防止多次运行
来源:互联网 发布:win8软件限制策略 编辑:程序博客网 时间:2024/05/17 06:18
#include<windows.h>
#include<stdio.h>
int main(int argc,char *argv[])
{
HANDLE hMutex;
DWORD dwErr;
hMutex=CreateMutex(NULL,//无安全描述
FALSE,//没有所有者
"HACK");//对象名
if(hMutex==NULL)//hMutex为NULL标示创建失败
{
MessageBox(NULL,"CreateMutex error!",NULL,MB_OK);
}
else
{
dwErr=GetLastError();
if(dwErr==ERROR_ALREADY_EXISTS)//互斥对象已经存在
{
MessageBox(NULL,"Application has already running",NULL,MB_OK);
ExitProcess(0);
}
}
getchar();
return 0;
}
- vc++防止多次运行
- vc++防止多次运行
- vc 防止多次运行同一个程序的方法
- vc 防止多次运行同一个程序的方法
- 防止程序多次运行。
- 防止程序多次运行
- 防止同一个程序多次运行。
- 防止同一个程序多次运行
- 防止程序自身多次运行。
- c# 防止程序多次运行
- C#防止程序多次运行
- CreateMutex 防止程序多次运行
- Delphi 防止程序多次运行
- 如何防止程序多次运行
- 防止同一个程序多次运行。 [VB.NET]
- 防止同一个程序多次运行。 [VB.NET]
- 如何防止一个程序运行多次
- shell脚本是防止多次运行
- Pro Silverlight 2 in C# 2008
- C#中ToString格式大全
- vc++实现文件关联
- 顶点声明
- Pro Silverlight 2 in C# 2008
- vc++防止多次运行
- vc++实现文件传送
- 操作系统PV操作典型问题
- Connectivity and Knowledge Management in Virtual Organizations: Networking and Developing Interactiv
- vc++实现无进程无DLL无硬盘文件无启动项的ICMP后门后门程序
- Managing Web Service Quality: Measuring Outcomes and Effectiveness
- 好好学习 开始写博客
- Managing Web Service Quality: Measuring Outcomes and Effectiveness
- 初识SOA