Windows消息事实就是一个数值。
private const int WM_DEVICECHANGE = 0x219; //设备改变
private const int DBT_DEVICEARRIVAL = 0x8000; //检测到新设备
private const int DBT_DEVICEREMOVECOMPLETE = 0x8004; //移除设备
private const int DBT_DEVTYP_VOLUME = 0x00000002; //逻辑卷标
const int DBT_CONFIGCHANGECANCELED = 0x0019; //配置改变取消
const int DBT_CONFIGCHANGED = 0x0018