home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lang / asm / 468 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.3 KB

  1. Xref: sparky alt.lang.asm:468 comp.os.msdos.programmer:10721 comp.sys.ibm.pc.programmer:591
  2. Newsgroups: alt.lang.asm,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
  3. 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
  4. From: craigm@egnext1.SLAC.Stanford.EDU (Craig Markwardt)
  5. Subject: Re: LASTDRIVE function/asm/ect... Need one!
  6. In-Reply-To: friesenda@skyfox.usask.ca's message of Thu, 12 Nov 1992 16:56:08 GMT
  7. Message-ID: <CRAIGM.92Nov16233925@egnext1.SLAC.Stanford.EDU>
  8. Lines: 30
  9. Sender: news@unixhub.SLAC.Stanford.EDU
  10. Organization: Stanford Linear Accelerator Center
  11. References: <2930338308.2.p00168@psilink.com> <9NOV92.14394645@skyfox.usask.ca>
  12.     <1992Nov9.193307.22648@ra.msstate.edu>
  13.     <12NOV92.16560845@skyfox.usask.ca>
  14. Date: Tue, 17 Nov 1992 07:39:29 GMT
  15.  
  16. In article <12NOV92.16560845@skyfox.usask.ca> friesenda@skyfox.usask.ca writes:
  17.  
  18.    In a previous article, jdz1@Ra.MsState.Edu (John D. Zitterkopf) wrote:
  19.    >In article <9NOV92.14394645@skyfox.usask.ca> friesenda@skyfox.usask.ca writes:
  20.    > 
  21.    >>>DOS interrupt 21h, function 52 -> ES:BX pointer to DOS info table.
  22.    >>>Offset 21h is a byte value of LASTDRIVE in config.sys. (DOS 3.x at least)
  23.    >>>
  24.    >>I needed the same sort of function a few months back and thought I had
  25.    >>found the answer with some interrupt (I can't remember if it was 21h
  26.    >>or not), but as it turned out, at least in my case, using the interrupt
  27.    >>was useless.  I think the same goes for the above method.  Interrupt
  28.    >>21h will return the value of LASTDRIVE in _CONFIG.SYS_. If you are
  29.     ...
  30.  
  31. _Undocumented DOS_ by Andrew Schulman (et al) spends a whole chapter
  32. discussing solutions to this very problem as a prototype example of
  33. using undocumented DOS calls.  In the end, Schulman concludes that in
  34. order to get an accurate result for network machines, you need to use
  35. an undocumented interrupt (but since Novell does it for their
  36. networking software, he reasons that it is acceptable for you to use
  37. it too).
  38.  
  39. Craig
  40.  
  41. --
  42. ---------------------------------------------------------------------
  43. Craig Markwardt             SLAC           | "To cogitate and
  44. internet: craigm@egnext2.slac.stanford.edu |  to solve ..." -MathNet
  45. ---------------------------------------------------------------------
  46.