Article View: alt.msdos.programmer
Article #836Re: How to know if a diskette is in the drive
From: glad
Date: Wed, 16 Dec 1992 23:36
Date: Wed, 16 Dec 1992 23:36
19 lines
1151 bytes
1151 bytes
> I am writing a Windows DLL. How does my program interrogate the floppy > drive to discover whether or not there is a disk in the drive? If > possible, I would rather not have to pick up the C run time library. I'm > using MS C 7.0. > I believe one of the first things that you have to do is add the following command to your config.sys file to let DOS know that your drive is capable of "change line support" Not all floppy drives support this feature, but most of the newer ones do: DRIVPARM=/D:n /C n=0 or 1 (0=A: & 1=B:) /C=specifies that the drive can detect whether the drive door is closed. Then you can read STDERR for the code that corresponds to an OPEN drive door. Francis
Technical Details
Message-ID:
<1992Dec16.193643.9631@ac.dal.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!ac.dal.ca!gladReferences:
<1992Dec15.134957.19203@cbnews.cb.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!ac.dal.ca!glad From: glad@ac.dal.ca Newsgroups: alt.msdos.programmer,comp.os.ms-windows.programmer.tools Subject: Re: How to know if a diskette is in the drive Message-ID: <1992Dec16.193643.9631@ac.dal.ca> Date: 16 Dec 92 19:36:42 -0400 References: <1992Dec15.134957.19203@cbnews.cb.att.com> Organization: Dalhousie University, Halifax, Nova Scotia, Canada Lines: 19