关闭

VC DEVICE插拔消息

144人阅读 评论(0) 收藏 举报
分类:
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.
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:67384次
    • 积分:1603
    • 等级:
    • 排名:千里之外
    • 原创:70篇
    • 转载:172篇
    • 译文:0篇
    • 评论:1条
    最新评论