// JP opened flex table

Click to See Complete Forum and Search --> : usb get handle


co7
March 27th, 2007, 03:27 AM
win2k:
HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Enum
my usb device desc:
BPTE USB DEVICE 606

how can i get handle of this USB device to createfile , read and write?. so far. no luck. i have winddk installed.

tigran_g
April 10th, 2007, 09:46 AM
You can do CreateFile with "\\.\hcd0", "\\.\hcd0" and so one.
These are your host controllers. After opening host controler you can get root hub names via DeviceIoControls, than you can get each node connected to the hub. IOCTL codes for DeviceIoControl you can find in usb.h in winddk

Regards.
Tigran

//JP added flex table