USB Print question

Hi,
I wanted to know the logic behind the USB port ID generated by the OS
and also about the “ParentIdPrefix” entry in the registry. Any pointer
to the appropriate documentation would be helpful.
Thanks,
Shashi