30 pts.
 Problem in accessing CD Drives (VB/VB.Net 2.0).
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.

Software/Hardware used:
ASKED: July 29, 2008  3:44 PM
UPDATED: July 29, 2008  5:11 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  July 29, 2008  5:11 pm  by  Flame   14,895 pts.
All Answer Wiki Contributors:  Flame   14,895 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _