Thread View: alt.msdos.programmer
2 messages
2 total messages
Started by neil.a.kirby
Tue, 15 Dec 1992 13:49
How to know if a diskette is in the drive
Author: neil.a.kirby
Date: Tue, 15 Dec 1992 13:49
Date: Tue, 15 Dec 1992 13:49
13 lines
884 bytes
884 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.
If your solution requires the run time library, I'd need some Makefile
help. The Makefile I'm using is straight out of the book for writing
DLLs.
Thanks,
Neil Kirby
nak@archie.cbusa.att.com
Re: How to know if a diskette is in the drive
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads