怎样找到USB设备的EndPoint?
各位兄弟,我在开发一个USB设备的应用程序时,开发手册上只给出了ClassGUID,"PIPE00","PIPE01"这几个信息。
小弟使用以下函数:
1,SetupDiGetClassDevs
2,SetupDiEnumInterfaceDevice
3,SetupDiGetInterfaceDeviceDetail
可是只找到了USB设备的设备接口 :
"\\\\?\\usb#vid_05d9&pid_0776#a776#{c12127c7-8258-4929-8574-4278b946cd69}"
而没找到EndPoint的符号链接名。这是怎么回事呢?
开发手册上的说明说:
CreateFile :lpFilename Is the [b]Symbolic name[/b] Returned After a Proper Enumeration of the plug & Play Devices For the Class USB Device, And Including [b]the name of the disired Pipe[/b].
??? 按道理,应该可以SetupDiGetInterfaceDeviceDetail到EndPoint的,不然CreateFile就没法用。
是否存在其他函数取EndPoint的句柄呢?