Microsoft KB Archive/163361

{|
 * width="100%"|

HOWTO: Detecting CD-ROM Eject Without Bluescreen

 * }

Q163361

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) Windows 95

-

SUMMARY
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.

MORE INFORMATION
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.