delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/22/22:01:39

Message-ID: <349F1FE1.7814@compuserve.com>
Date: Mon, 22 Dec 1997 21:20:17 -0500
From: Laurent Turcotte <lturcott AT compuserve DOT com>
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>
Newsgroups: comp.os.msdos.djgpp
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019