📄 pfreelsn.dpr
字号:
program pfreelsn;
uses
Forms,
Windows, Messages, SysUtils,
freelsn in 'freelsn.pas' {Form1};
{$R *.res}
var
MutexHandle: THandle;
hPrevInst: Boolean;
begin
MutexHandle := createMutex(nil, TRUE, 'MysampleAppMutex');
if MutexHandle <> 0 then
begin
if GetLastError = ERROR_ALREADY_EXISTS then
begin
MessageBox(0, '解决时间限制软件正在运行,请稍后再次运行!',
'程序已经运行!', mb_IconHand);
hPrevInst := TRUE;
CloseHandle(MutexHandle);
Halt;
application.Terminate;
end
else
begin
hPrevInst := FALSE;
end;
end
else
begin
hPrevInst := FALSE;
end;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -