home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.msdos.programmer:2963 comp.os.ms-windows.programmer.tools:1730
- Path: 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
-
- > 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
-