Solved

checking if a CDRW is available?

Posted on 2004-08-06
6
254 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Download XPBurn and use it's IMAPI translation. It will tell you.

http://www.bayden.com/delphi/cdburner.htm
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

763 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

14 Experts available now in Live!

Get 1:1 Help Now