#1 Burning Software

It is currently Fri Dec 20, 2024 11:43 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Get CD-Drive letter using the latest OCX
PostPosted: Thu Mar 23, 2006 2:06 pm 
Offline

Joined: Tue Feb 14, 2006 2:07 pm
Posts: 4
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


Top
 Profile  
 
 Post subject: Re: Get CD-Drive letter using the latest OCX
PostPosted: Thu Mar 23, 2006 8:39 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group