home *** CD-ROM | disk | FTP | other *** search
- unit UsePass;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, PassForm, StdCtrls;
-
- type
- TForm1 = class(TForm)
- Button1: TButton;
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
-
- implementation
-
- {$R *.DFM}
-
- function GetPassword(APassword: Pchar): WordBool; far;
- external 'PASSWORD';
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- if GetPassword('PASSWORD') then
- Color := clGreen
- else Color := clRed;
- end;
-
- end.
-