checking if a CDRW is available?

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

Who is Participating?
Eddie ShipmanConnect With a Mentor All-around developerCommented:
Download XPBurn and use it's IMAPI translation. It will tell you.
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....

Wim ten BrinkSelf-employed developerCommented:
Consider using IMAPI...
I don't know anything about it but from this MSDN page you might get more usable information.
Lukasz LachCommented:
That can be done easier.
You can use DeviceIOControl with IOCTL_CDROM_GET_CONFIGURATION parameter and then extract information from FEATURE_NUMBER record.
Lukasz LachCommented:
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 for examples of using WMI and getting CD-ROM's info...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.