Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_handcnt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_HANDCNT()
 Count number of available DOS (not network) file handles
------------------------------------------------------------------------------

 Syntax

    FT_HANDCNT() -> nHandles

 Arguments

   None

 Returns

   numeric, long integer

 Description

   FT_HANDCNT() finds the internal DOS Device Control Blocks used for
   storing file information and counts the number of DCB entries.  The
   DCB is set up by reading the FILES= line in CONFIG.SYS, and there
   is one DCB entry for each file handle.

   NOTE: For Novell networks, the number of network file handles is
         controlled by SHELL.CFG.  To date, I know where this information
         is stored after SHELL.CFG has been read, but have not come up
         with a reliable way to retrieve the information.  There is no
         public variable associated with the storage location, and the
         location can change from version to version of NETx.EXE.
         Novell Tech Support's response, though friendly, was "Nope, we
         don't know of a way for you to do it, either.  Good luck."

 Examples

   nHandles := FT_HANDCNT()
   ? "This PC has " + LTRIM( STR( nHandles ) ) + " set by CONFIG.SYS."

 Source: HANDCNT.ASM

 Author: Bob Clarke

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