Article View: comp.os.msdos.programmer
Article #5037How to detect drive ready and media changed for floppies
From: Jeffrey Weiss
Date: Tue, 05 Mar 1991 21:01
Date: Tue, 05 Mar 1991 21:01
17 lines
1123 bytes
1123 bytes
Two questions about programming for floppy drives: 1. How can you query the drive's MEDIA CHANGED status? I know that there is a device driver function for this, but the DOS IOCTL call doesn't seem to provide a call for it. 2. Can you tell if the drive is ready (i.e., media inserted and door closed)? I know there is a DOS function call where you can detect "media ready" for a handle, but I'd like to check before I open a file on the diskette. Can you get a handle for the device itself? -- jw@mckinsey.com (...mit-eddie!mck-csc!jw) Jeffrey Weiss -- -- jw@mckinsey.com (...mit-eddie!mck-csc!jw) Jeffrey Weiss
Technical Details
Message-ID:
<1991Mar5.210135.5733@mck-csc.mckinsey.com>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mck-csc!jwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mck-csc!jw From: jw@mck-csc.mckinsey.com (Jeffrey Weiss) Newsgroups: comp.os.msdos.programmer Subject: How to detect drive ready and media changed for floppies Keywords: diskette, media changed, ioctl Message-ID: <1991Mar5.210135.5733@mck-csc.mckinsey.com> Date: 5 Mar 91 21:01:35 GMT Reply-To: jw@mck-csc (Jeffrey Weiss) Organization: McKinsey & Company, Inc., Cambridge, MA Lines: 17