Message-ID: <349F1FE1.7814@compuserve.com> Date: Mon, 22 Dec 1997 21:20:17 -0500 From: Laurent Turcotte MIME-Version: 1.0 CC: tkoenig AT key DOT unizh DOT ch Subject: Re: Drive informations using DJGPP References: <349E26F9 DOT 77F0 AT key DOT unizh DOT ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Newsgroups: comp.os.msdos.djgpp Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Thomas Koenig wrote: > > Can anybody tell my how to obtain information about available drives > (under DOS/WIN95) using DGJPP? I spent a night with info and could not > find out... I would like to write a C function that tells my > > a) If the drive exists, > b) If it can be read. > Hi Thomas I have never done this, but I think BIOS INT 13H, can do the job I dont have good documentation but I think the following function will do the job ! GET DISK SYSTEM STATUS INT 13h, AH=01h, DL=Drive READ DRIVER PARAMETERS INT 13h, AH=08h, DL=Drive TEST DRIVE READY INT 13h, AH=10h, DL=Drive Regards Laurent Turcotte