We help IT Professionals succeed at work.

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

alijunior
alijunior asked
on
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
Comment
Watch Question

Software Engineer, Advisory
CERTIFIED EXPERT
Top Expert 2005
Commented:
Handle the notification passed in the WM_DEVICECHANGE message. Example of this @:

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

Regards,
Russell
Forced accept.

Computer101
EE Admin

Explore More ContentExplore courses, solutions, and other research materials related to this topic.