2008-10-31 21:18:20 +00:00
|
|
|
unit EXPROTU;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
SysUtils, Classes,
|
2023-02-17 16:28:47 +00:00
|
|
|
Controls, Forms, Dialogs, StdCtrls, Buttons, LResources, ExtCtrls,
|
|
|
|
ogutil, ogproexe;
|
2008-10-31 21:18:20 +00:00
|
|
|
|
|
|
|
type
|
2023-02-17 16:28:47 +00:00
|
|
|
|
|
|
|
{ TForm1 }
|
|
|
|
|
2008-10-31 21:18:20 +00:00
|
|
|
TForm1 = class(TForm)
|
2023-02-17 16:28:47 +00:00
|
|
|
Bevel1: TBevel;
|
2008-10-31 21:18:20 +00:00
|
|
|
CloseBtn: TBitBtn;
|
2023-02-17 16:28:47 +00:00
|
|
|
Memo1: TLabel;
|
2008-10-31 21:18:20 +00:00
|
|
|
StatusLbl: TLabel;
|
|
|
|
OgProtectExe1: TOgProtectExe;
|
|
|
|
procedure OgProtectExe1Checked(Sender: TObject; Status: TExeStatus);
|
|
|
|
private
|
|
|
|
{ Private declarations }
|
|
|
|
public
|
|
|
|
{ Public declarations }
|
|
|
|
end;
|
|
|
|
|
|
|
|
var
|
|
|
|
Form1: TForm1;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
procedure TForm1.OgProtectExe1Checked(Sender: TObject; Status: TExeStatus);
|
|
|
|
var
|
|
|
|
S : string;
|
|
|
|
begin
|
|
|
|
case Status of
|
|
|
|
exeSuccess : S := 'EXE file is OK';
|
|
|
|
exeSizeError : S := 'EXE file size has changed';
|
|
|
|
exeIntegrityError : S := 'EXE Integrity Error';
|
|
|
|
exeNotStamped : S := 'EXE file is not stamped';
|
|
|
|
else
|
|
|
|
S := 'Unknown error';
|
|
|
|
end;
|
|
|
|
StatusLbl.Caption := S;
|
|
|
|
end;
|
|
|
|
|
|
|
|
initialization
|
|
|
|
{$i exprotu.lrs}
|
|
|
|
|
|
|
|
end.
|