Mail Archives: djgpp/1997/12/22/22:01:39
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
- Raw text -