Problem in accessing CD Drives (VB/VB.Net 2.0).

30 pts.
Tags:
CD drives
VB
VB.NET
Hi everyone, I'm focusing on a real tough problem that I hav been trying to solve since a long time in VB/VB.Net (2.0). I'm trying to detect the Open or close status of the Cd drive door. I'm using mcisendstring function to query the status, mcisendstring("Status CDAudio Mode"). This function returns the following values accordingly: "not ready", "paused", "playing", and "stopped" values. Some devices can return the additional "open", "parked", "recording", and "seeking" values. If there is a cd in the drive and the door is closed then it's almost easy to identify as "status CDAudio mode" returns a value anything other than "open". But the real problem is when the CD door is open the value returned by the mcisendstring function is "open". Again when the CD door is closed with no CD inside the function is returning the same value "open". There's no way I can distinguish the CD tray status programatically when the value returned is "open". Can anybody help me? Is there any other way other than the mcisendstring function to query the CD door status? If yes then Plz provide me a code example.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Check this site:

http://www.vbcodesource.com/vbNetControls.php

They have a dowloadable library that has a bunch of CD functions. You would probably be most interested in the second entry in the table on the above page.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following