Knowledge Base

HOWTO: Detecting CD-ROM Eject Without Bluescreen

PSS ID Number: 163361

Article Last Modified on 10/24/2002


The information in this article applies to:


This article was previously published under Q163361

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.

REFERENCES

Microsoft Windows '95 DDK - "IOR" documentation

Additional query words: 4.00 KBDSupport kbdsh

Keywords: KB163361
Technology: kbAudDeveloper kbWin32DDK95 kbWin32DDKSearch kbWin32sSearch kbWin95search kbWinDDKSearch