VC DEVICE插拔消息

WM_DEVICECHANGE消息       电脑或者DEVICE配置发生改变,反馈给应用程序


wParam
Event that has occurred. This parameter can be one of the following values from the Dbt.h header file.
Value Meaning
DBT_CONFIGCHANGECANCELED
0x0019 A request to change the current configuration (dock or undock) has been canceled.
DBT_CONFIGCHANGED
0x0018 The current configuration has changed, due to a dock or undock.
DBT_CUSTOMEVENT
0x8006 A custom event has occurred.
Windows NT 4.0 and Windows 95:  This value is not supported.
DBT_DEVICEARRIVAL
0x8000 A device or piece of media has been inserted and is now available.
DBT_DEVICEQUERYREMOVE
0x8001 Permission is requested to remove a device or piece of media. Any application can deny this request and cancel the removal.
DBT_DEVICEQUERYREMOVEFAILED
0x8002 A request to remove a device or piece of media has been canceled.
DBT_DEVICEREMOVECOMPLETE
0x8004 A device or piece of media has been removed.
DBT_DEVICEREMOVEPENDING
0x8003 A device or piece of media is about to be removed. Cannot be denied.
DBT_DEVICETYPESPECIFIC
0x8005 A device-specific event has occurred.
DBT_DEVNODES_CHANGED
0x0007 A device has been added to or removed from the system.
Windows NT 4.0 and Windows Me/98/95:  This value is not supported.
DBT_QUERYCHANGECONFIG
0x0017 Permission is requested to change the current configuration (dock or undock).
DBT_USERDEFINED
0xFFFF The meaning of this message is user-defined.
阅读更多
个人分类: VC++
上一篇封装按钮
下一篇VC 判断系统是否进入睡眠模式
想对作者说点什么? 我来说一句

VC检测USB接口中插拔外部设备

2013年06月26日 38KB 下载

Device Tool

2011年08月29日 202KB 下载

c++监控USB插拔状态源码

2018年01月19日 666B 下载

C#Wince系统消息检测

2014年02月28日 26KB 下载

VC对话框模拟键盘消息

2011年01月29日 1.79MB 下载

注册表监控存储设备插拔

2011年05月30日 43KB 下载

VC 消息大全 VC 消息大全,htm

2011年03月05日 52KB 下载

没有更多推荐了,返回首页

关闭
关闭