BltSetVar


< Prev  TOC  Next >

TBLT_RETC TBLT_ENTRY BltSetVar(ULONG *varPtr,
                               LONG index);


 varPtr         IO:new value of item/old value of item
 index          I:index of item to set

This routine sets a Bullet state variable. These states should only be modified when Bullet is idle (eg, at program startup).

The following item index values are available to set:

 BLTVAR_MPNL      default max pathname length
 BLTVAR_MPCL      default max pathname component length
 BLTVAR_MPXL      default max pathname extension length
 BLTVAR_MFSF      max file size fudge (128KB)
 BLTVAR_MARSV     default bytes to hold back from Bullet reindex
 BLTVAR_MASZRX    default max total memory reindex may allocate
 BLTVAR_MASZ      default max single allocation request size
 BLTVAR_MCBSZ     memo copy buffer size (2KB)
 BLTVAR_MCBMAM    memo copy buffer memory allocation strategy (0)
Default (values) above are used when the corresponding value in the TBLT_KH/TBLT_DH structure is set to 0. The default values vary depending on platform except where explicitly shown above.

Returns: Non-zero indicates an error, otherwise the item is set to the new value, and varPtr has the item's old value.


All content Copyright © 1999 Cornel Huth. All rights reserved.