Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent checkbox click event occur while editing it in vb6 8 56
MsgBox 4 68
Automatic Email Reminder 4 57
backup program with robocopy 6 43
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

840 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