2

Can someone confirm whether QueryDosDevice() and IOCTL_STORAGE_GET_DEVICE_NUMBER considers LUNs on the same physical USB storage device as a single device, or is each LUN considered as a separate device?

For example, if I have a USB thumb drive that has multiple LUNs, and each LUN has been allocated a logical DOS "letter", such as C:, D:, etc, if I call QueryDosDevice() will it return the same DeviceName for all the LUNs? Or will each LUN have a different DeviceName?

Similarly, if I use IOCTL_STORAGE_GET_DEVICE_NUMBER for each of the LUNs, will the returned DeviceNumber be the same for all the LUNs?

Thanks for your help!

Diosney
  • 10,520
  • 15
  • 66
  • 111
  • AFAICT, USB doesn't necessarily work with LUNs like that. The USB spec has a mass storage class. Windows understands partitions on USB mass storage devices, which means that a USB thumb drive with 2 drive letters can have (1) one mass storage volume with 2 partitions or (2) two mass storage volumes, both unpartioned. – MSalters Jan 28 '11 at 15:26

0 Answers0