Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site phs.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!duke!phs!lisa
From: lisa@phs.UUCP (Jeffrey William Gillette)
Newsgroups: net.micro
Subject: How does a program detect disks on a PC?
Message-ID: <1054@phs.UUCP>
Date: Sun, 22-Sep-85 20:38:45 EDT
Article-I.D.: phs.1054
Posted: Sun Sep 22 20:38:45 1985
Date-Received: Tue, 24-Sep-85 03:15:48 EDT
Organization: Duke Physiology
Lines: 17

[]

I have a program that needs to know how many disk drives [block devices] are 
present on an IBM PC / compatible.  I know that interrupt 11h (equipment 
check) will tell me about diskette drives, but I also need to find out about 
fixed diskes (which may be partitioned into more than one logical device) 
and other device drivers which are loaded through config.sys (e.g. Iomega 
Bernoulle boxes).  

Does anyone know of a way to check for the presence of block devices without
either asking the user (who in this case will probably not know the answer),
or making calls to DOS that will put strange error messages on the screen.

Jeffrey William Gillette		uucp: duke!phys!lisa
The Divinity School			bitnet: DYBBUK @ TUCCVM
Duke University