Solved

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

Posted on 2006-07-21
5
404 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now