[comp.os.msdos.programmer] Determining drive configuration

ssvvss@mixcom.COM (Synetics Software) (06/19/91)

I need to find out the number of logical drives and their types (i.e. floppy
or fixed).  I'm using Borland C++.   This seems like it should be a fairly
straightforward thing to do, but I can't seem to find any Borland library
routines or DOS interrupts which do exactly what I want.  (A lot of the
DOS interrupts that return information on a drive try to make it current
first which is no good for floppy drives).  Actually, all I need is a
routine, "isValidDrive(driveNum)", and use it along with the max number
of drives (returned from setdisk()) to get a list of the valid drives.
Thanks for any help you can offer.

Douglas Earl
Synetics Software
dae@synetic.uucp    dae@synetic.mixcom.com