How detects if the CD-ROM drive closes? How notify my app to check out again the disk in drive? Nero does this...

I wrote a program who shows to the user how kind of media is inserted in the CD-ROM drive. The program check out the drive to get this information wheh it starts. But if the user open the CD-ROM drive and change the media, that information became incorrect. So, the program needs a notify when the CD-ROM closes, an open, if possible. The Nero does this, so I think this is possible.

Best regards,

alijunior
LVL 2
alijuniorAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Russell LibbyConnect With a Mentor Software Engineer, Advisory Commented:
Handle the notification passed in the WM_DEVICECHANGE message. Example of this @:

http://www.swissdelphicenter.ch/torry/showcode.php?id=372

Regards,
Russell
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
All Courses

From novice to tech pro — start learning today.