Rediger

Del via


WM_INPUT_DEVICE_CHANGE message

Description

Sent to the window that registered to receive raw input.

Raw input notifications are available only after the application calls RegisterRawInputDevices with RIDEV_DEVNOTIFY flag.

A window receives this message through its WindowProc function.

#define WM_INPUT_DEVICE_CHANGE          0x00FE

Parameters

wParam

Type: WPARAM

This parameter can be one of the following values.

Value Meaning
GIDC_ARRIVAL
1
A new device has been added to the system.
You can call GetRawInputDeviceInfo to get more information regarding the device.
GIDC_REMOVAL
2
A device has been removed from the system.

lParam

Type: LPARAM

The HANDLE to the raw input device.

Return value

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

See also

Conceptual

Raw Input

Reference

RegisterRawInputDevices

RAWINPUTDEVICE structure