Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!tcdcs!wsl!john From: john@wsl.UUCP (John Allen on wsl) Newsgroups: comp.sys.ibm.pc Subject: Re: Magic Number Five in turbo C, MS C, and int 21/0E Message-ID: <269@wsl.UUCP> Date: 12 Oct 89 21:25:11 GMT References: <483@schaefer.MATH.WISC.EDU> Reply-To: john@wsl.ie (John Allen on wsl) Organization: Workhorse Systems, Dublin, Ireland Lines: 16 Summary: Expires: Sender: Followup-To: In article <483@schaefer.MATH.WISC.EDU> wayne@schaefer.MATH.WISC.EDU (Rick Wayne) writes: >we've run into a little problem here that i find baffling. we're trying to >determine the number of disk drives on a machine at runtime. there's a DOS >interrupt service for this: interrupt 0x21, function 0x0E, "set default >disk drive". it's supposed to return the number of drives in the system. > Try putting the following line in your config.sys and watch the magic number 5 change completely under your control. lastdrive=z lastdrive=p etc.... By the way the default is lastdrive=e, does this give you any clues.