Mount usb port under specific name

Hi,

we are using two usb ports on the T20. When the first usb ist mounted “USB HD” is shown in the explorer. “USB HD2” when the second one is mounted. Doesn’t matter on which port the usb is mounted. Everything fine so far.
Is it somehow possible to mount usb from port x under “USB HDX”, no matter if it is the first mounted usb or not?

Thanks in advance.

Dear @marfro,

Since USB is a hot-pluggable device, WinCE assigning numbers on first come first number. There is no easy method to fix a mounting name for USB drive. One has to modify WinCE code to fix it. Please refer https://social.msdn.microsoft.com/Forums/en-US/d63bec2f-8606-4955-92b9-080f5ff28d2e/mass-storage-device-identification-in-a-particular-usb-port?forum=winembplatdev thread for more information.

I would like to suggest another method that would be easy for you. Using SetupDiGetDeviceInterfaceDetail get notified for USB device connection then find the mount path and access the storage. Reference code for SetupDiGetDeviceInterfaceDetail.

A one more relevant to your use case : http://geekswithblogs.net/BruceEitman/archive/2008/06/13/windows-ce-monitoring-for-disk-insertion-to-add-support-for.aspx

Please let us know if you need any help on this.