CD Change Notifications
Posted
by Peter Nijenhuis
on April 4th, 1999
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.
Date Last Updated: April 4, 1999

Comments
From an ActiveX control?
Posted by Legacy on 07/08/2003 12:00amOriginally posted by: Mike
How can I get the WM_DEVICECHANGE message from within an ActiveX control?
ReplyTo make this work in MFC is quite simple
Posted by Legacy on 08/20/2001 12:00amOriginally posted by: Uday A. Prabhune
Replyhow to get second cd rom notification
Posted by Legacy on 09/19/2000 12:00amOriginally posted by: craig
It seems the sample works only for the first cd-rom drive. what if i have a second cd-rom attached on the system and i need to get notification about it? any suggestion is appreciated.
Thanks.
--Craig
Reply