Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!usc!ginosko!uunet!mcsun!sunic!kth!draken!d88-eli From: d88-eli@nada.kth.se (Erik Liljencrantz) Newsgroups: comp.sys.ibm.pc Subject: Re: How can I poll a drive? Message-ID: <1668@draken.nada.kth.se> Date: 15 Sep 89 14:18:11 GMT References: <342@castle.ed.ac.uk> <45855611.15768@bladder.UUCP> <331@helens.Stanford.EDU> Reply-To: d88-eli@nada.kth.se (Erik Liljencrantz) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 17 In article <331@helens.Stanford.EDU> mike@relgyro.STANFORD.EDU (Mike Macgirvin) writes: >In article <45855611.15768@bladder.UUCP> wagnere@bladder.UUCP (Eric Wagner) writes: >>In article <342@castle.ed.ac.uk>, erck12@castle.ed.ac.uk (Gnome) writes: >>> Questions about determining valid drive letters and open drive doors. > Suggestion to use _harderr() and _hardresume() in MSC 5.1 To determine if a drive letter is valid, use the MSDOS INT 21 (AH=xx) function select drive and then use INT 21 (AH=yy) return current drive and check if they are equal (Sorry about the xx and yy, but I don't have the manual at hand...). I don't know about the open drive door, but MSDOS doesn't know either... --- Erik Liljencrantz | "No silly qoutes!!" d88-eli@nada.kth.se | Embraquel D. Tuta