Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfmaxhnd()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfMaxHnd()
Returns the highest number of handles
------------------------------------------------------------------------------
Syntax:

     dfMaxHnd() --> nHandle

Parameters:

     NONE

Returns:

     <nHandle> Highest number of available handles.

Description:

     Returns the highest number of available handles. Do never allocate
     more handles than the number of handles that DOS makes available to
     you. The number of handles specified in CONFIG.SYS has precedence with
     respect to the number specified in Clipper. The following rule holds:
     the lowest number is used, and the minimum is 20.
     
     . The first 5 dos handles are:
     
     +---------------------------------+
     | # | Description      | Port     |
     |---+------------------+----------|
     | 0 | Standard input   | Keyboard |
     | 1 | Standard output  | Display  |
     | 2 | Standard error   | Display  |
     | 3 | Auxiliary device | COM1:    |
     | 4 | Printer output   | LPT1:    |
     +---------------------------------+

Example:

     // Executable file built with //F:100
     ? dfMaxHnd()   // Returns 100
     // In CONFIG.SYS there is 50
     // and the EXE fle is built with //F:100
     ? dfMaxHnd()   // Returns  50

See also:

     dfFreeHnd()

See Also: dfFreeHnd()

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