scyangd
驱动牛犊
驱动牛犊
  • 注册日期2004-05-31
  • 最后登录2005-12-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1723回复:2

应用程序如何访问USB设备

楼主#
更多 发布于:2004-06-04 11:27
小弟是作应用程序开发的。在开发过程中,遇到一些问题想请教各位。还望不吝赐教。
我的应用程序需要与某个USB设备进行通信,但现在与无法建立与USB设备的连接并进行通信。请问各位有何办法能够解决!
谢谢了!
scyangd
驱动牛犊
驱动牛犊
  • 注册日期2004-05-31
  • 最后登录2005-12-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-01-28 18:50
这是个老贴,但问题还没有解决了。
期待中!
sampex
驱动牛犊
驱动牛犊
  • 注册日期2001-03-23
  • 最后登录2010-01-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-01-29 03:03
you need get the symbolic name of the device, then create file handle to it, then you can use read/write or usedeviceiocontrol to do it

to get the symbolic name of a device, u need know the guid of that device, you should go through registry to find it or you need DEV_BROADCAST_DEVICEINTERFACE and register you rountine to receive teh device arrive msg.  when you get that device arrive msg, you get the symbolic name from (PDEV_BROADCAST_DEVICEINTERFACE)->dbcc_name
游客

返回顶部