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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Russell LibbySoftware 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.