[comp.os.msdos.programmer] File/device handles

jhall@wpi.WPI.EDU (John Clinton Hall) (12/08/90)

Where can I get a list of MD-DOS device handles, such as those used by INT
21/40 (write to file or device handle)?  I have searched my manuals, but to no
avail.
-- 
The highest sounds are hardest to hear.  ## ## ## ##### ##  jhall@wpi.wpi.edu
Going forward is a way to retreat.       ## ## ## ## ## ##  Worcester
Great talent shows itself late in life.  ## ## ## ##### ##  Polytechnic
Even a perfect program still has bugs.   ######## ##    ##  Institute

hd7x@vax5.cit.cornell.edu (Sanjay Aiyagari) (12/09/90)

In article <1990Dec8.050109.24482@wpi.WPI.EDU>,
jhall@wpi.WPI.EDU (John Clinton Hall) writes:
>
>Where can I get a list of MD-DOS device handles, such as those used by INT
>21/40 (write to file or device handle)?  I have searched my manuals, but to no
>avail.

DOS uses file handles 0-4 for special devices (I believe it is standard input,
standard output, standard error, auxiliary device, and standard printer).
Other than that, you get the file handle when you issue a create or open
function call, and this is what you use when you call function 40h to write to
a file.
Sanjay Aiyagari (hd7x@vax5.cit.cornell.edu)