#1 Burning Software

It is currently Thu Dec 19, 2024 9:47 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How to get all the devices names configured on the machine?
PostPosted: Mon Jul 02, 2007 7:42 am 
Offline

Joined: Tue Jan 09, 2007 6:29 am
Posts: 9
Location: India
Hi,
I am using the StarBurn_CdvdBurnerGrabber_CreateEx function.
This requires the following parameter
IN PCHAR p__PCHAR__DeviceName which is the Pointer to device symbolic link name.

I used the StarBurn_GetDeviceNameByDeviceAddress from which i able th retrive only one device name i.e E: but there are two DVD writers configured on my machine [E: and F:].

StarBurn_GetDeviceNameByDeviceAddress returnd only one device.

How can i get both the symbolic device names?


Top
 Profile  
 
 Post subject: Re: How to get all the devices names configured on the machi
PostPosted: Wed Jul 04, 2007 10:41 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Do not try to re-invent the wheel :) Use appropriate sample doing device enumeration (FindDeviceEx) and do not use ASPI-specific calls (GetDeviceNameByDeviceAddress) when doing SPTI and SPTD based device creation :)

Ru wrote:
Hi,
I am using the StarBurn_CdvdBurnerGrabber_CreateEx function.
This requires the following parameter
IN PCHAR p__PCHAR__DeviceName which is the Pointer to device symbolic link name.

I used the StarBurn_GetDeviceNameByDeviceAddress from which i able th retrive only one device name i.e E: but there are two DVD writers configured on my machine [E: and F:].

StarBurn_GetDeviceNameByDeviceAddress returnd only one device.

How can i get both the symbolic device names?


Top
 Profile  
 
 Post subject: Re: How to get all the devices names configured on the machi
PostPosted: Wed Jul 04, 2007 12:09 pm 
Offline

Joined: Tue Jan 09, 2007 6:29 am
Posts: 9
Location: India
1] Well i saw your sample FindDeviceEx. Here your are checking for CDROM from C to Z. I can use this.
2] But I didnt understand, what you ment by "ASPI-specific calls". In the help of GetDeviceNameByDeviceAddress there is nothing mentioned in there (like for ASPI or SPTI).
3] And if i change the DeviceID in GetDeviceNameByDeviceAddress, i get the second device also. This may not be a good method, but can you please tell me what may be possible hazard doing this?


Top
 Profile  
 
 Post subject: Re: How to get all the devices names configured on the machi
PostPosted: Thu Jul 05, 2007 10:59 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Ru wrote:
1] Well i saw your sample FindDeviceEx. Here your are checking for CDROM from C to Z. I can use this.
2] But I didnt understand, what you ment by "ASPI-specific calls". In the help of GetDeviceNameByDeviceAddress there is nothing mentioned in there (like for ASPI or SPTI).
3] And if i change the DeviceID in GetDeviceNameByDeviceAddress, i get the second device also. This may not be a good method, but can you please tell me what may be possible hazard doing this?


ASPI - Advanced SCSI Programming Interface
SPTI - Scsi Pass Through Interface

Begin from WindowsNT supported SPTI.
ASPI - it's old SCSI transport.

Please use SPTI (See FindDeviceEx.c sample).

If you need get drive letter for device which was created by
StarBurn_CdvdBurnerGrabber_CreateEx() you can use function
StarBurn_GetDeviceLetter().


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 08, 2007 8:20 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
...ASPI is for Windows 95/98/Me backward compatibility only. Primary used interface is SPTI now. And SPTD (with set of the private drivers).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 7:35 am 
Offline

Joined: Fri Jul 20, 2007 1:20 pm
Posts: 11
How can I get device name, not device drive letter but device name for example "SONY DVD-xxx"?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 8:07 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Niraxoid wrote:
How can I get device name, not device drive letter but device name for example "SONY DVD-xxx"?


You can get Product ID and Vendor ID by using function:

StarBurn_CdvdBurnerGrabber_GetDeviceInformation(
IN PVOID p__PVOID__CdvdBurnerGrabber,
OUT PCHAR p__PCHAR__VendorID,
OUT PCHAR p__PCHAR__ProductID,
OUT PCHAR p__PCHAR__ProductRevisionLevel,
OUT PULONG p__PULONG__BufferSizeInUCHARs);

Please see C, MSVC samples form StarBurn SDK.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 8:36 am 
Offline

Joined: Fri Jul 20, 2007 1:20 pm
Posts: 11
andrey(staff) wrote:
Niraxoid wrote:
How can I get device name, not device drive letter but device name for example "SONY DVD-xxx"?


You can get Product ID and Vendor ID by using function:

StarBurn_CdvdBurnerGrabber_GetDeviceInformation(
IN PVOID p__PVOID__CdvdBurnerGrabber,
OUT PCHAR p__PCHAR__VendorID,
OUT PCHAR p__PCHAR__ProductID,
OUT PCHAR p__PCHAR__ProductRevisionLevel,
OUT PULONG p__PULONG__BufferSizeInUCHARs);

Please see C, MSVC samples form StarBurn SDK.


O! Thanks a lot. I've been finding device name in your samples not vendor and product :roll: it's my mistake . :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 8:48 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Ok. See samples, it's good help :wink:


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 16 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