本文整理自网络,侵删。
复制内容到剪贴板 程序代码program Project1;
uses
Windows, Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
if 0 = GlobalFindAtom('SOME-UNIQUE-TEXT-RELATED-TO-THIS-APPLICATION') then
begin
GlobalAddAtom('SOME-UNIQUE-TEXT-RELATED-TO-THIS-APPLICATION') ;
Application.CreateForm(TForm1, Form1) ;
Application.Run;
end
else
begin
Application.MessageBox(
'You can run the trial version '+
'of this application '+
'only once per Windows session!',
'Test Trial Protection') ;
end;
end.
相关阅读 >>
Delphi base64, quoted-printable 的解码与编码函数
Delphi 过卡巴2009和沙盘启发杀毒的Delphi源代码
更多相关阅读请进入《Delphi》频道 >>