怎样找到USB设备的EndPoint?

tree2000 2009-03-24 11:54:31
各位兄弟,我在开发一个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的句柄呢?

...全文
606 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

21,595

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧