home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.lang.asm:468 comp.os.msdos.programmer:10721 comp.sys.ibm.pc.programmer:591
- Newsgroups: alt.lang.asm,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!egnext1.SLAC.Stanford.EDU!craigm
- From: craigm@egnext1.SLAC.Stanford.EDU (Craig Markwardt)
- Subject: Re: LASTDRIVE function/asm/ect... Need one!
- In-Reply-To: friesenda@skyfox.usask.ca's message of Thu, 12 Nov 1992 16:56:08 GMT
- Message-ID: <CRAIGM.92Nov16233925@egnext1.SLAC.Stanford.EDU>
- Lines: 30
- Sender: news@unixhub.SLAC.Stanford.EDU
- Organization: Stanford Linear Accelerator Center
- References: <2930338308.2.p00168@psilink.com> <9NOV92.14394645@skyfox.usask.ca>
- <1992Nov9.193307.22648@ra.msstate.edu>
- <12NOV92.16560845@skyfox.usask.ca>
- Date: Tue, 17 Nov 1992 07:39:29 GMT
-
- In article <12NOV92.16560845@skyfox.usask.ca> friesenda@skyfox.usask.ca writes:
-
- In a previous article, jdz1@Ra.MsState.Edu (John D. Zitterkopf) wrote:
- >In article <9NOV92.14394645@skyfox.usask.ca> friesenda@skyfox.usask.ca writes:
- >
- >>>DOS interrupt 21h, function 52 -> ES:BX pointer to DOS info table.
- >>>Offset 21h is a byte value of LASTDRIVE in config.sys. (DOS 3.x at least)
- >>>
- >>I needed the same sort of function a few months back and thought I had
- >>found the answer with some interrupt (I can't remember if it was 21h
- >>or not), but as it turned out, at least in my case, using the interrupt
- >>was useless. I think the same goes for the above method. Interrupt
- >>21h will return the value of LASTDRIVE in _CONFIG.SYS_. If you are
- ...
-
- _Undocumented DOS_ by Andrew Schulman (et al) spends a whole chapter
- discussing solutions to this very problem as a prototype example of
- using undocumented DOS calls. In the end, Schulman concludes that in
- order to get an accurate result for network machines, you need to use
- an undocumented interrupt (but since Novell does it for their
- networking software, he reasons that it is acceptable for you to use
- it too).
-
- Craig
-
- --
- ---------------------------------------------------------------------
- Craig Markwardt SLAC | "To cogitate and
- internet: craigm@egnext2.slac.stanford.edu | to solve ..." -MathNet
- ---------------------------------------------------------------------
-