home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 2.ddi / CEXAM.ZIP / TBLDECRY.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-11  |  444 b   |  23 lines

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. #define NETDIR          "\\pdox35"
  5. #define PASSWORD        "password"
  6. #define TABLENAME       "table"
  7.  
  8. int main(void)
  9. {
  10.     int pxErr;
  11.  
  12.     PXNetInit(NETDIR,NOVELLNET,DEFUSERNAME);
  13.     PXPswAdd(PASSWORD);
  14.  
  15.     /* Attempt to decrypt the table */
  16.     if ((pxErr = PXTblDecrypt(TABLENAME)) != PXSUCCESS)
  17.         printf("%s\n", PXErrMsg(pxErr));
  18.  
  19.     PXExit();
  20.     return(pxErr);
  21. }
  22. 
  23.