Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.16 KB

wm-input-device-change.md

File metadata and controls

83 lines (54 loc) · 2.16 KB
title description ms.assetid keywords topic_type api_name api_location api_type req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr ms.topic ms.date
WM_INPUT_DEVICE_CHANGE message (Winuser.h)
Sent to the window that registered to receive raw input. A window receives this message through its WindowProc function.
2f98d8ea-b47b-4dea-9c38-f9697b18053a
WM_INPUT_DEVICE_CHANGE message Keyboard and Mouse Input
apiref
WM_INPUT_DEVICE_CHANGE
Winuser.h
HeaderDef
winuser.h
Windows.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
reference
05/31/2018

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