Solved

how to determine if a cd/dvd drive is writeable (hopefully in the registry

Posted on 2006-07-21
5
408 Views
Last Modified: 2010-04-30
I have a program currently in winbatch may become vb6.  I get a list is cd or dvd drives by letter but need a way to determine if they are writable ie burners.

i am currently using the key currentuser\software\microsoft\windows\current version\explorer\ cd burning..

if the type is a 1 or 2 its writable and 3 is not.  but that key is often wrong and there is even a microsoft article on it.

so any other registry key that might tell me if its reallly a recorder??
thanks
0
Comment
Question by:ocsscott
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
JRCSystems earned 125 total points
ID: 17163098
Yes, but be prepared to do a little experimentation.

Here's the exact registry key you want to look into:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\

At that point, you need to examine the sub-keys.
Sub-keys starting with "Disk" can be skipped: they are hard drives.

You want to look at sub-keys starting with "CDROM[name/manufacturer]"

INSIDE each sub-key, is one or more sub-keys, that appear to be based on the FIRMWARE version of that drive.
OPEN IT.
Go into "...\Device Parameters\Settings"
Read the value of "WritingDevice"
1 = BURNER
0 = READER only.


0
 
LVL 41

Assisted Solution

by:graye
graye earned 125 total points
ID: 17168439
For WinXP and above, there is another registry key to check.  If the EnableImapi value at CurrentControlSet\Enum\IDE\<devicename>\<id>\Device Parameters\Imapi\EnableImapi" exists (and is set to 1), then it's a burner
0
 
LVL 4

Expert Comment

by:JRCSystems
ID: 17571878
Is this problem still open? Did you have anymore questions?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question