Folks,
(1) I did use Mr. Jan Axelson's C#-example(C#) to read/write my USB device. Very good.
(2) Also, I did use USBViewer(C#) to find my USB devices through Controller-->Hub. Very good.
Question:
How to find the device-path of my USB device through HUB?
I did try to use DeviceIoControl in several ways, no results.
Then, I tried to identify my USB devices from (1) and
(2).
I did use SetupDiGetDeviceRegistryProperty for DeviceKey, (1) and (2) produced a little differece:
(1)--> {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}\0129
(2)--> {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}\0127
I did use SetupDiGetDeviceInstanceId for DeviceId, (1) and (2) produced a total differece:
(1)--> HID\VID_089C&PID_0000\7&124EDCCF&0&0000
(2)--> USB\VID_089C&PID_0000\6&33B481DB&0&1
I lost!!!