Solved

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

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 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