防止程序多次运行。
来源:互联网 发布:sql必知必会怎么样 编辑:程序博客网 时间:2024/05/15 06:02
var
MutexHandle:THandle;
begin
Application.Initialize;
MutexHandle :=windows.CreateMutex(nil,True,PChar(sApp_Name));
if MutexHandle <>0 then begin
if GetLastError = windows.ERROR_ALREADY_EXISTS then begin
MsgBox('程序己经运行过了。',1);
CloseHandle(MutexHandle);
Halt;
end;
end;
MutexHandle:THandle;
begin
Application.Initialize;
MutexHandle :=windows.CreateMutex(nil,True,PChar(sApp_Name));
if MutexHandle <>0 then begin
if GetLastError = windows.ERROR_ALREADY_EXISTS then begin
MsgBox('程序己经运行过了。',1);
CloseHandle(MutexHandle);
Halt;
end;
end;
- 防止程序多次运行。
- 防止程序多次运行
- 防止同一个程序多次运行。
- 防止同一个程序多次运行
- 防止程序自身多次运行。
- c# 防止程序多次运行
- C#防止程序多次运行
- CreateMutex 防止程序多次运行
- Delphi 防止程序多次运行
- 如何防止程序多次运行
- 防止同一个程序多次运行。 [VB.NET]
- 防止同一个程序多次运行。 [VB.NET]
- 如何防止一个程序运行多次
- java防止一个程序运行多次!
- Delphi CreateMutex 防止程序多次运行
- Delphi实现防止程序多次运行
- vc++防止多次运行
- vc++防止多次运行
- 破解flashFXP密码全过程
- C#中对象串行化技术的探讨
- 面向对象设计模式与原则
- VMWare 6 and linux(Ubuntu): vmmon compile error
- 两款极其优秀的脚本工具调试工具
- 防止程序多次运行。
- Linux 下的一些解压缩命令
- 一个不错的日历控件(javascript写的).
- 存储类的设计
- libjingle翻译之《Important Concepts(重要概念)之SSL Support(SSL支持)》
- 局域网防范技巧
- 几种排序算法的实现
- libjingle翻译之《Important Concepts(重要概念)之Connections(链接)》
- Linux下Rootkit的另类检测