CD Change Notifications

Environment: The demo was written using Visual C++ 6.0

Getting Notification of CD-ROM Insertion or Removal:

Some Win32 applications need to know when the user inserts or removes a compact disc
from a CD-ROM drive without polling for media changes. Windows NT provide a way to notify
these applications through the WM_DEVICECHANGE message. This article explains how to handle
the WM_DEVICECHANGE message to detect CD-ROM media changes. Furthermore is describes a way
to cancel Autoplay application using the QueryCancelAutoPlay event.

Download demo project – 18 KB

Date Last Updated: April 4, 1999

More by Author

Must Read