文件名称:USBListening
-
所属分类:
- 标签属性:
- 上传时间:2014-07-22
-
文件大小:1.83mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
当USB设备插入或者弹出时,Windows会产生一条全局消息:WM_DEVICECHANGE
我们需要做的是,获得这条消息的wParam参数,如果为DBT_DEVICEARRIVAL则表示有设备插入并可用,
如果是DBT_DEVICEREMOVECOMPLETE则表示有设备已经移除。再查看lParam参数为DBT_DEVTYP_VOLUME时,
就可以取出DEV_BROADCAST_VOLUME结构的卷号dbcv_unitmask,就知道是哪个卷被插入或者弹出。-When a USB device is inserted or pop-up, Windows will generate a global message: WM_DEVICECHANGE
We need to do is get this message wParam parameter, if it means that there is DBT_DEVICEARRIVAL device inserted and available,
If there is DBT_DEVICEREMOVECOMPLETE said equipment has been removed. Then view the lParam parameter is DBT_DEVTYP_VOLUME,
You can remove the volume number dbcv_unitmask DEV_BROADCAST_VOLUME structure, you know what the volume is inserted or ejected.
我们需要做的是,获得这条消息的wParam参数,如果为DBT_DEVICEARRIVAL则表示有设备插入并可用,
如果是DBT_DEVICEREMOVECOMPLETE则表示有设备已经移除。再查看lParam参数为DBT_DEVTYP_VOLUME时,
就可以取出DEV_BROADCAST_VOLUME结构的卷号dbcv_unitmask,就知道是哪个卷被插入或者弹出。-When a USB device is inserted or pop-up, Windows will generate a global message: WM_DEVICECHANGE
We need to do is get this message wParam parameter, if it means that there is DBT_DEVICEARRIVAL device inserted and available,
If there is DBT_DEVICEREMOVECOMPLETE said equipment has been removed. Then view the lParam parameter is DBT_DEVTYP_VOLUME,
You can remove the volume number dbcv_unitmask DEV_BROADCAST_VOLUME structure, you know what the volume is inserted or ejected.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
res/USBListening.ico
res/USBListening.rc2
ReadMe.txt
Resource.h
StdAfx.cpp
StdAfx.h
USBListening.aps
USBListening.clw
USBListening.cpp
USBListening.dsp
USBListening.dsw
USBListening.h
USBListening.ncb
USBListening.opt
USBListening.plg
USBListening.rc
USBListeningDlg.cpp
USBListeningDlg.h
Debug/StdAfx.obj
Debug/USBListening.exe
Debug/USBListening.ilk
Debug/USBListening.obj
Debug/USBListening.pch
Debug/USBListening.pdb
Debug/USBListening.rar
Debug/USBListening.res
Debug/USBListeningDlg.obj
Debug/vc60.idb
Debug/vc60.pdb
res
Debug
res/USBListening.rc2
ReadMe.txt
Resource.h
StdAfx.cpp
StdAfx.h
USBListening.aps
USBListening.clw
USBListening.cpp
USBListening.dsp
USBListening.dsw
USBListening.h
USBListening.ncb
USBListening.opt
USBListening.plg
USBListening.rc
USBListeningDlg.cpp
USBListeningDlg.h
Debug/StdAfx.obj
Debug/USBListening.exe
Debug/USBListening.ilk
Debug/USBListening.obj
Debug/USBListening.pch
Debug/USBListening.pdb
Debug/USBListening.rar
Debug/USBListening.res
Debug/USBListeningDlg.obj
Debug/vc60.idb
Debug/vc60.pdb
res
Debug
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.