Closing stdprn & stdaux May Not Increase Available HandlesLast reviewed: July 17, 1997Article ID: Q47741 |
5.10 6.00 6.00a 6.00ax 7.00 | 1.00 1.50
MS-DOS | WINDOWSkbprg The information in this article applies to:
SUMMARYDue to a limitation of MS-DOS, the handles stdaux and stdprn cannot be closed in order to open additional files before hitting the limit of the FILES= parameter in CONFIG.SYS. To open a file using the C run time, ALL of the following conditions must be true:
MORE INFORMATIONThe results of comparing a C program that uses the C run-time library and a MASM program that calls MS-DOS directly are shown below. Each was run with stdprn and stdaux, closed and open.
C Program MASM Program
--------- ------------
FILES= W/o Closing W/ Closing W/o Closing W/ Closing
------ ----------- ---------- ----------- ----------
17 (Note 1) 14 14 14 14
18 (Note 1) 15 15 15 15
19 15 16 16 16
20 15 17 17 17
21 (Note 2) 15 17 17 17
Please note the following:
When you close handles 3 and 4, they are closed for C but not for MS-DOS. Therefore, you can open exactly as many handles as MS-DOS normally allows.
|
Additional reference words: kbinf 1.00 1.50 5.10 6.00 6.00a 6.00ax 7.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |