home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / msdos / programm / 2963 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.2 KB

  1. Xref: sparky alt.msdos.programmer:2963 comp.os.ms-windows.programmer.tools:1730
  2. Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!ac.dal.ca!glad
  3. From: glad@ac.dal.ca
  4. Newsgroups: alt.msdos.programmer,comp.os.ms-windows.programmer.tools
  5. Subject: Re: How to know if a diskette is in the drive
  6. Message-ID: <1992Dec16.193643.9631@ac.dal.ca>
  7. Date: 16 Dec 92 19:36:42 -0400
  8. References: <1992Dec15.134957.19203@cbnews.cb.att.com>
  9. Organization: Dalhousie University, Halifax, Nova Scotia, Canada
  10. Lines: 19
  11.  
  12. >     I am writing a Windows DLL.  How does my program interrogate the floppy
  13. > drive to discover whether or not there is a disk in the drive?  If
  14. > possible, I would rather not have to pick up the C run time library.  I'm
  15. > using MS C 7.0.  
  16.  
  17. I believe one of the first things that you have to do is add the following
  18. command to your config.sys file to let DOS know that your drive is capable
  19. of "change line support"  Not all floppy drives support this feature, but
  20. most of the newer ones do:
  21.  
  22. DRIVPARM=/D:n /C
  23.  
  24. n=0 or 1 (0=A: & 1=B:)
  25. /C=specifies that the drive can detect whether the drive door is closed.
  26.  
  27. Then you can read STDERR for the code that corresponds to an OPEN drive door.
  28.  
  29. Francis
  30.