Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Problem in accessing CD Drives in VB/VB.Net 2.0.

Thread Tools

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

priyamtheone priyamtheone is offline
Junior Member
Join Date: Jul 2008
Posts: 5
Hi everyone, I'm focusing on a real tough problem that I hav been trying to solve since a long time. 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.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing Drives - Finding Drives - Losing Drives Computer Support 2 09-21-2007 10:16 PM
Vista and Flash Drives (Thumb/USB drives) Arawak Computer Support 2 04-25-2007 10:18 PM
need some questions answered if you can re 2 harde drives 2 dvd rw drives anthony crowder Computer Support 1 10-29-2006 08:42 PM
Computer freezes with external USB hard drives - jump drives work Zap Eagle Computer Support 3 07-13-2006 04:36 PM
Enumerate all the drives including Mapped network drives on a serv =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?= ASP .Net 2 02-26-2005 03:13 PM