没有合适的资源?快使用搜索试试~ 我知道了~
usb热插拔消息检测
4星 · 超过85%的资源 需积分: 10 25 下载量 148 浏览量
2014-06-01
15:03:40
上传
评论 1
收藏 3KB TXT 举报
温馨提示
This is the constructor for the CCyUSBDevice class. It registers the window of hnd to receive USB Plug and Play messages when devices are connected or disconnected to/from the driver. The object created serves as the programming interface to the driver whose GUID is passed in the guid parameter. The constructor initializes the class members and then calls the Open(0) method to open the first device that is attached to the driver.
资源推荐
资源详情
资源评论
CCyUSBDevice::CCyUSBDevice(HANDLE hnd = NULL, GUID guid = CYUSBDRV_GUID)
Previous Top Next
Description
This is the constructor for the CCyUSBDevice class.
It registers the window of hnd to receive USB Plug and Play messages when devices are connected or disconnected to/from the driver.
The object created serves as the programming interface to the driver whose GUID is passed in the guid parameter.
The constructor initializes the class members and then calls the Open(0) method to open the first device that is attached to the driver.
Parameters
hnd
hnd is a handle to the application's main window (the window whose WndProc function will process USB PnP events).
If you are building a console application or don't want your window to receive PnP events, you may omit the hnd parameter.
guid
guid is the GUID defined in the [Strings] section of the CyUsb.inf file (or your own named copy). If this parameter is omitted, guid defaults to CYUSBDRV_GUID.
If you don't want to register for PnP events, but you do want to pass your own driver GUID to the constructor, you will need to pass NULL as the hnd parameter.
Example 1
Previous Top Next
Description
This is the constructor for the CCyUSBDevice class.
It registers the window of hnd to receive USB Plug and Play messages when devices are connected or disconnected to/from the driver.
The object created serves as the programming interface to the driver whose GUID is passed in the guid parameter.
The constructor initializes the class members and then calls the Open(0) method to open the first device that is attached to the driver.
Parameters
hnd
hnd is a handle to the application's main window (the window whose WndProc function will process USB PnP events).
If you are building a console application or don't want your window to receive PnP events, you may omit the hnd parameter.
guid
guid is the GUID defined in the [Strings] section of the CyUsb.inf file (or your own named copy). If this parameter is omitted, guid defaults to CYUSBDRV_GUID.
If you don't want to register for PnP events, but you do want to pass your own driver GUID to the constructor, you will need to pass NULL as the hnd parameter.
Example 1
资源评论
- ___依米花___2014-07-25很好,很有用,谢谢
- SpaceyXu2016-06-28还行,只有一个txt,但是里面内容还不错,英文
- 2897822016-12-13有点用,只是不太全面
- LWZ1239992015-05-28就一个TXT文档, 还是英文, 看得比较累
emeifeng_lucky
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功