Dear friends:
I searched the internet and could not find a way to programmatically know whether a disk drive supports DVD or only CD without the need to insert a disk media into the drive. I have tried WMI unsuccessfully before. Windows operating system can display cdrom or dvd drive information correctly. C++, C# or VB solutions are all welcome! Thanks in advance!
Modification
One more thing:
I tested the registry on two machines: one with a DVD+-RW and another with a CD-RW. Both of the machines have DefaultDvdRegion = 1 in the registry although one machine has only CD-RW.
The Name and DeviceID of the ManagementObject do reflect the type of the drive:
DVD+-RW has this: "IDE\\CDROMTSSTCORP_DVD+-RW_TS-H653B_______________D200____\\5&1A4D1015&0&0.0.0"
CD-RW has this : "IDE\\CDROMTSSTCORP_CD-RW___TS-H292B_______________DE03____\\5&70107E7&0&0.0.0"
End Modification