WM_INPUT_DEVICE_CHANGE message

Sent to the window that registered to receive raw input.

A window receives this message through its WindowProc function.

#define WM_INPUT_DEVICE_CHANGE          0x00FE

Parameters

wParam

This parameter can be one of the following values.

Value Meaning
GIDC_ARRIVAL
1
A new device has been added to the system.
GIDC_REMOVAL
2
A device has been removed from the system.

lParam

The handle to the raw input device. Call GetRawInputDeviceInfo to get more information regarding the device.

Return value

If an application processes this message, it should return zero.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Winuser.h (include Windows.h)