I'm trying to open a driver for a specific device that
are driven by usbio.sys driver form thesycon.
Currently i'm about to enumerate all devices over the ports,
begining like that:
Code:
FOR ..
wsprintf(HCName, "\\\\.\\HCD%d", HCNum);
hHCDev = CreateFile(HCName,
GENERIC_WRITE,
FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
0,
NULL);
if HCDDev != INVALID_HANDLE_VALUE
OpenRootHub etc.
Sorry for that ugly pseudo code but, that is how im making it.
Here is an output what my code produces.
Host Controller Device 0: HCD0
HCD Driver Name Length: 24
HCD Driver Name: USB\0000
RootHub Name length: 116
RootHub Name: 0000000000000002#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
Opening RootHub: \\.\0000000000000002#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
Anzahl der Geräte am HUB: 3
ROOT:
Dev: 1 >Device Connected
Dev: 2 >No device
Dev: 3 >No device
Host Controller Device 1: HCD1
HCD Driver Name Length: 24
HCD Driver Name: USB\0001
RootHub Name length: 116
RootHub Name: 0000000000000003#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
Opening RootHub: \\.\0000000000000003#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
Anzahl der Geräte am HUB: 3
ROOT:
Dev: 1 >Device Connected
Dev: 2 >No device
Dev: 3 >No device
>
I just want to skip this part and open a driver directly.
Not scanning over all connected devices to the HCD.
Hope it's not too confusing.