Category : Pascal Source Code
Archive   : TPWPXENG.ZIP
Filename : PSWADD.PAS

 
Output of file : PSWADD.PAS contained in archive : TPWPXENG.ZIP
program PswAdd;
uses PXEngine, WinCrt, WinTypes;

const TableName = 'Table';
Password = 'Password';

var PxErr: Integer;
Protected: Bool;

procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;

begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblProtected(TableName, Protected));

if Protected then
begin
(* Submit password to system if table protected *)
PxErr := PXPswAdd(Password);
if PxErr <> PxSuccess
then Writeln(PxErrMsg(PxErr));
end;

PX(PXExit);
end.


  3 Responses to “Category : Pascal Source Code
Archive   : TPWPXENG.ZIP
Filename : PSWADD.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/