HOWTO: Detecting CD-ROM Eject Without BluescreenLast reviewed: February 11, 1997Article ID: Q163361 |
The information in this article applies to:
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 INFORMATIONTo 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.
REFERENCESMicrosoft Windows '95 DDK - "IOR" documentation
|
KBCategory: kbprg kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |