Re: Determine drive letter from device path




I've shown the link between drive letter and device path
here (C/C++):
http://www.codeproject.com/system/RemoveDriveByLetter.asp

But I was not aware of the fact that CD-Changers have
a drive letter. Therefore the same thing I've written
there for floppy drives is true for CD-Changers too.

I've just added support for CD-Changers to my tool
ListUsbDrive, here is a test version:
http://www.uwe-sieber.de/files/listusbdrives_test.zip
It's a commandline tool. By default it shows USB and
FireWire drives only, you changer seems to be a FireWire
drive.
Started thru the included cmd files, the output is
redirected into a text file and opened.

Could you send me please the output of the _usbdr-d.cmd?
-d is debug and shows a lot of internals...


Greetings from Germany

Uwe



Steve wrote:
Can anybody tell me how I can find the drive letter assigned to the CD/
DVD drive(s) inside a jukebox type disc changer.

Following is the device path as returned by a call to
SetupDiGetDeviceInterfaceDetail
\\?\sbp2#powerfile-c200-r&disc_changer&lun2#003060c200001582#{53f56310-
b6bf-11d0-94f2-00a0c91efb8b}

I can determine that there are two drives in this changer with a
subsequent call to DeviceIoControl with the
IOCTL_CHANGER_GET_PARAMETERS control code.

How can I determine the drive letter assigned to the two drives in
this device?

Thanks,
Steve
.



Relevant Pages

  • Re: How to get flash media insertion/removal events
    ... Instead of the device path a physical drive string might work ... USB drives are, this of course prevents the preparation for save ... You should also register for GUID_DEVINTERFACE_DISK in case the ... // media arrived ...
    (microsoft.public.win32.programmer.kernel)
  • deciphering scsi card in an E450
    ... looking at adding some more drives to it. ... standard E450 8 slot scsi expansion cards in it, ... The device path for the first two disks is what I'm familiar with: ... SYS PCI 33 3 pciclass,058000 ...
    (SunManagers)
  • [HPADM] USB memory stick drive configuration
    ... An odd situation came up where we may have to use one of the USB memory ... sticks to transfer data between a ... drives plugged into my C3000 and it shows up in an ioscan -fn command as: ... trying to assign it to the device path. ...
    (HP-UX-Admin)
  • Re: Last resort - usb and drive letters
    ... drives on a certain drive letter. ... In the console tree, click Disk ... > affect statically assigned drive letters. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Drive Letters
    ... changing the drive letter of the boot drive without reinstalling the OS ... drives C and D. If you do not need ... > When you install or upgrade to Windows XP, the system partition (the ...
    (microsoft.public.windowsxp.basics)

Quantcast