I have a cd-rom massive storage device that is connection via a USB print.
I have multiple drives and need to know which massive storage device is
connected to which USB device. I can enumerate both by using the cdrom
guid and usb guid in the SetupDiEnumDeviceInterfaces method. But how link
them?
In the registry I found a key called parentPrefixId that seems to link the
massive storage device with the usb device. I can use this but if possible
I would prefer to use the API calls to do this.