single.pas

来自「病历管理系统」· PAS 代码 · 共 20 行

PAS
20
字号
unit Single;

interface

implementation

uses Windows, SysUtils;

var
  hnd: THandle;

initialization
  hnd := CreateMutex(nil, True, 'irgendwaseinmaliges');
  if GetLastError = ERROR_ALREADY_EXISTS then Halt;

finalization
  if hnd <> 0 then CloseHandle(hnd);

end.
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?