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 - <b>syntax:</b> int pxsetdefaults(int bufsize, int maxtables, int maxrecbufs, http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: int PXSetDefaults(int bufsize, int maxTables, int maxRecBufs,
                          int maxLocks, int maxFiles, char *sortOrder)

Args:  bufSize    - internal swap buffer size
                    MINSWAPSIZE..MAXSWAPSIZE (8..256),
                    default DEFSWAPSIZE (32)

       maxTables  - max number of tables open at a time
                    range 1..MAXTABLEHANDLES (1..64)
                    default  DEFTABLEHANDLES (5)

       maxRecBufs - max number of record buffers at a time
                    range 1..MAXRECORDHANDLES (1..512)
                    default  DEFRECORDHANDLES (10)

       maxLocks   - max number of locks per table
                    range 1..MAXLOCKHANDLES  (1..128)
                    default DEFLOCKHANDLES   (32)

       maxFiles   - max number of file handles to use
                    range MINFILEHANDLES..MAXFILEHANDLES (3..255)
                    default DEFFILEHANDLES       (10)

       sortOrder  - address of sort order table defined
                    internally in the Engine.  NOTE for WINDOWS this
                    is char type,  not an array.
                    Applicable values:
                    SortOrderAscii (default)
                    SortOrderIntl
                    SortOrderNorDan
                    SortOrderNorDan4
                    SortOrderSwedFin

Returns: PXSUCCESS (0) or error number

Synopsis: Allows changes to internal Engine defaults.  If used,  it
   must be called prior to calling PXInit. Note that this function does
   not check to see if there are sufficient resources to satisfy the given
   parameters. Make sure to test the return value of PXInit.!! Also note
   that a table cannot be opened if the table's sort order is different
   from the current default.

   WINDOWS:  These values are set in the WIN.INI file and can be
             modified with PXENGCFG.EXE.  As such,  this function
             simply checks to make sure the default settings are
             within the values specified.

See Also: Example PXInit

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