Solved

checking if a CDRW is available?

Posted on 2004-08-06
6
255 Views
Last Modified: 2010-04-05

I need to know if there is a CDRW available in current machine for making backups



0
Comment
Question by:faustomen
6 Comments
 
LVL 12

Expert Comment

by:esoftbg
ID: 11741935
I have a Delphi code that extracts Model number of devices (CDD and HDD)....
Then if Model number contains 'CDRW' or 'CD-RW' decides that this device is a CDRW....
But can not be determined the Root-Directory of the device ('D:\' or 'E:\' or ....)
If you are interested I can provide you the code....

emil
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 11744700
Consider using IMAPI... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/imapi_reference.asp
I don't know anything about it but from this MSDN page you might get more usable information.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 11760291
That can be done easier.
You can use DeviceIOControl with IOCTL_CDROM_GET_CONFIGURATION parameter and then extract information from FEATURE_NUMBER record.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 11778544
Just found out there is also a solutions by using WMI calls. That would make you to find RW string in device's name.
See http://www.online-admin.com/twmistorageinfo.html for examples of using WMI and getting CD-ROM's info...
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 250 total points
ID: 11794354
Download XPBurn and use it's IMAPI translation. It will tell you.

http://www.bayden.com/delphi/cdburner.htm
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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

896 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

13 Experts available now in Live!

Get 1:1 Help Now