Solved

checking if a CDRW is available?

Posted on 2004-08-06
6
256 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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