Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Paradox Engine 3.0 for C - /* the setup.c program must be compiled and run before this example */ http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
/* The SETUP.C program must be compiled and run before this example */
/* can be executed. */

#include <stdio.h>
#include "pxengine.h"

#define PASSWORD    "password"
#define TABLENAME   "table"

int main(void)
{
  PXCODE pxErr;
  int    Protected;

  PXInit();
  PXTblProtected(TABLENAME, &Protected);

  if (Protected)
    pxErr = PXPswAdd(PASSWORD);

  /* Open encrypted table, and when done with table, delete password
     from system, if necessary. */

  if (Protected)
    if ((pxErr = PXPswDel(PASSWORD)) != PXSUCCESS)
      printf("%s\n",PXErrMsg(pxErr));

  PXExit();
  return(pxErr);
}
.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson