Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!lll-winken!ames!sparkyfs.erg.sri.com!hercules!fernwood!portal!cup.portal.com!ekalenda From: ekalenda@cup.portal.com (Edward John Kalenda) Newsgroups: comp.os.msdos.programmer Subject: Re: Device Drivers Message-ID: <36152@cup.portal.com> Date: 22 Nov 90 07:53:46 GMT References: <1990Nov21.205117.2778@watserv1.waterloo.edu> Distribution: na Organization: The Portal System (TM) Lines: 16 > Hi, I know that I can do this, but for the life of me I can't figure out > how. > > How do I identify a give filename as a name used by a device driver. > i.e. lpt1, com1 and the sorts? > > Inquiring minds and that stuff, > -- > Jack a.k.a. Wildside ... 2nd regeneration of a Time Lord Open the file using DOS function 0x3d then use function 0x44 subfunction 0x00. The return will tell you if it's a file or a device. If a device, there's some more bits to tell you if it's stdin, stdout, etc. Ed ekalenda@cup.portal.com