DBT_CONFIGCHANGECANCELED event
The system broadcasts the DBT_CONFIGCHANGECANCELED device event when a request to change the current configuration (dock or undock) has been canceled.
To broadcast this device event, the system uses the WM_DEVICECHANGE message with wParam set to DBT_CONFIGCHANGECANCELED and lParam set to zero.
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_DEVICECHANGE
WPARAM wParam, // device-change event
LPARAM lParam // event-specific data
);
Parameters
-
hwnd
-
A handle to a window.
-
uMsg
-
The WM_DEVICECHANGE message identifier.
-
wParam
-
Set to DBT_CONFIGCHANGECANCELED.
-
lParam
-
Set to zero.
Return value
Return TRUE.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
|