Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>sethandlecount()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetHandleCount()
Set the number of available file handles
------------------------------------------------------------------------------

Syntax
SetHandleCount( <nWanted> )   -->   nActual

Arguments
<nWanted> is an integer specifying the number of file handles
wanted.

Returns
The returned value is the actual number now available.

Description
This function can be used to change the number of file handles
made available by Windows to the application.

The returned value specifies the actual number.

Note: as well as the setting in CONFIG.SYS, there is an entry
in the [386enh] section of SYSTEM.INI of the form:
          PerVMFiles=<n>
where <n> is the number of files.  You may need to alter this
value.

Example
nActual = SetHandleCount( NFH )
if nActual < NFH
     // error ...
endif


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