阅读:1723回复:2
应用程序如何访问USB设备
小弟是作应用程序开发的。在开发过程中,遇到一些问题想请教各位。还望不吝赐教。
我的应用程序需要与某个USB设备进行通信,但现在与无法建立与USB设备的连接并进行通信。请问各位有何办法能够解决! 谢谢了! |
|
沙发#
发布于:2005-01-28 18:50
这是个老贴,但问题还没有解决了。
期待中! |
|
板凳#
发布于: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 |
|