We left the power management on for our USB hub. This has the effect of switching itself off and then switching itself on again when accessed. I don't know when the access happens or when the hub is switched off.
One of the devices connected to this hub has the strange behaviour where it updates the UI number whenever it is reconnected. I thought these UI numbers only went as far as 256 but yesterday, the number was up to 932.
I've been searching for this on the internet but I can't find the answer. The question is - how high does the UI number go? It is a ULONG so does it go to MAXINT?
Edit
It is basically a unique number given to the device. For instance, on PCIE devices, the UI number would be the slot number. The device I am using has a serial number but it is the same for every single device. The UI number, location path and location info are one of the few ways I have of uniquely identifying the device.
I can get the UI number by using SetupDiGetDeviceInterfaceProperty and setting the third parameter to SRDP_UI_NUMBER. It is a ULONG value