Solved

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

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

18 Experts available now in Live!

Get 1:1 Help Now