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!

4

0 回答 0