HOWTO: Detecting CD-ROM Eject Without BluescreenID: Q163361
|
When you eject a CD-ROM disc, and an application subsequently attempts to access the disc, Windows '95 switches to a critical error blue screen (in text mode) and asks the user to put the CD-ROM back in the drive. This article demonstrates how a vendor can prevent the blue screen, and instead put up a friendlier message or ignore the error all together.
To avoid the blue screen and have the error failed back to the calling application, you must use a VSD at ring 0 to intercept I/O Requests as they go down. The VSD must set the IORF_QUIET_VOLTRACK bit in the I/O Request, which tells VolTrack to simply return an error when the wrong media (or not media) is in the drive instead of putting up a dialog box.
Microsoft Windows '95 DDK - "IOR" documentation
Additional query words: 4.00
Keywords : ntddkstorage
Version : 4.00
Platform : WINDOWS
Issue type :
Last Reviewed: March 4, 1999