Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Function 67H (decimal 103), introduced in DOS version 3.3, lets a program
  specify the maximum number of handles it can keep open at any one time.
  DOS maintains a table of the handles used by a program in a reserved area
  in the program's PSP. Normally, the limit is 20 handles, of which 5 are
  automatically opened by DOS for the standard input, output, error,
  auxiliary, and printer devices.

  To increase the maximum number of open handles, call function 67H with the
  maximum number of desired handles in BX. DOS will allocate a new block of
  memory and use it to store an expanded table of handles. The function
  clears the carry flag to indicate success; if the carry flag is set, AX
  contains an error code.

  Remember two points about function 67H:

  .  If you are running a COM program that uses all available memory, it
     must call function 4AH to shrink its memory allocation before DOS can
     allocate a memory block for the handle table.

  .  The size of DOS's internal file table imposes an upper limit on the
     number of handles you can open. You can increase the size of that table
     with the FILES command in your CONFIG.SYS file.

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