使用Visual C 6.0检测USB [英] Detect USB using Visual C 6.0

查看:79
本文介绍了使用Visual C 6.0检测USB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须使用MSC visual C 6.0来检测USB,并且必须询问USB ID,然后在应用程序运行时对其进行识别.

我不知道该怎么做,我很担心.如果有人可以帮助我,那将非常好.

非常感谢你. :-D

Hi,

I have to detect a USB using MSC visual C 6.0 and I have to ask for the USB ID, then, identify it while the application is running.

I don''t know how to do this, and I''m very worried. If anyone can help me that would be very nice.

Thank you very much. :-D

推荐答案

检查是否正在寻找WM_DEVICECHANGE消息. http://msdn.microsoft.com/en-us/library/aa363480(VS .85).aspx [ ^ ]

将USB设备连接到计算机后,如果应用程序已经使用RegisterDeviceNotification()API注册了该应用程序,则该应用程序将收到WM_DEVICECHANGE消息.
Check if you are looking for WM_DEVICECHANGE message. http://msdn.microsoft.com/en-us/library/aa363480(VS.85).aspx[^]

When a USB device is connected to the computer, the application will get WM_DEVICECHANGE message if application has registered for it by using RegisterDeviceNotification() API.


这篇关于使用Visual C 6.0检测USB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆