Продолжительность (Стандартное тихоокеанское время):
Кому (Стандартное тихоокеанское время):
Влияние:
  • None
Действие:
  • None

WM_INPUT message

Sent to the window that is getting raw input.

A window receives this message through its WindowProc function.

No code example is currently available or this language may not be supported.

Parameters

wParam

The input code. This parameter can be one of the following values.

ValueMeaning
RIM_INPUT
0

Input occurred while the application was in the foreground. The application must call DefWindowProc so the system can perform cleanup.

RIM_INPUTSINK
1

Input occurred while the application was not in the foreground. The application must call DefWindowProc so the system can perform the cleanup.

 

lParam

A handle to the RAWINPUT structure that contains the raw input from the device.

Return value

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

Remarks

To get the wParam value, use the GET_RAWINPUT_CODE_WPARAM macro.

Note that lParam has the handle to the RAWINPUT structure, not a pointer to it. To get the raw data, use the handle in the call to GetRawInputData.

Raw input is available only when the application calls RegisterRawInputDevices with valid device specifications

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
GetRawInputData
RegisterRawInputDevices
RAWINPUT
GET_RAWINPUT_CODE_WPARAM
Conceptual
Raw Input