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 - #include <stdio.h> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
#include <stdio.h>
#include "pxengine.h"

main(void)
{
  PXCODE pxErr;
  char   *sortTable;
  int    maxSwapsize,maxTableHandles,maxRecBufs,
           maxLockHandles,maxFileHandles;

  PXSetDefaults(MAXSWAPSIZE,MAXTABLEHANDLES,PXDEFAULT,
    MAXLOCKHANDLES,MAXFILEHANDLES,PXDEFAULT);

  /* Retrieve the current defaults. */

  if ((pxErr = PXGetDefaults(&maxSwapsize,&maxTableHandles,&maxRecBufs,
    &maxLockHandles,&maxFileHandles,&sortTable)) != PXSUCCESS)
    printf("%s\n",PXErrMsg(pxErr));
  else
  {
    printf("Swap Size: %d\nTable Handles: %d\nRecord Buffers: %d\n",
      maxSwapsize,maxTableHandles,maxRecBufs);
    printf("Lock Handles: %d\nFile Handles: %d\nSort Table: %s\n",
      maxLockHandles,maxFileHandles,
      sortTable == DEFSORTORDER ? "System Default":sortTable);
  }
  return (pxErr);
}
.

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