Use QueryDosDevice(...) API call (check MSDN) to find CdRomXxx <-> Drive letter mapping.
ashutosh wrote:
Dear Alex ,
We are using the following code to get a list of all the devices on the machine
Dim objDevices As StarBurn.CDevices
objDevices = New StarBurn.CDevicesClass
Dim intTotal As Integer = objDevices.Count
Dim intLoop As Integer
For intLoop = 0 To intTotal - 1
CurrentDevice = objDevices.GetDevice(intLoop)
Next
We get the properties like DeviceName =" CdRom0" , productid , vendorid etc.. but it does not return the Drive letter.
Is there any way in which we can get the associated drive letters like E:\,F:\ etc.. using the CurrentDevice object.
Thanks in advance.
Regards
Ashutosh