RAWINPUTHEADER structure (winuser.h)

Contains the header information that is part of the raw input data.

Syntax

typedef struct tagRAWINPUTHEADER {
  DWORD  dwType;
  DWORD  dwSize;
  HANDLE hDevice;
  WPARAM wParam;
} RAWINPUTHEADER, *PRAWINPUTHEADER, *LPRAWINPUTHEADER;

Members

dwType

Type: DWORD

The type of raw input. It can be one of the following values:

Value Meaning
RIM_TYPEMOUSE 0 Raw input comes from the mouse.
RIM_TYPEKEYBOARD 1 Raw input comes from the keyboard.
RIM_TYPEHID 2 Raw input comes from some device that is not a keyboard or a mouse.

dwSize

Type: DWORD

The size, in bytes, of the entire input packet of data. This includes RAWINPUT plus possible extra input reports in the RAWHID variable length array.

hDevice

Type: HANDLE

A handle to the device generating the raw input data.

wParam

Type: WPARAM

The value passed in the wParam parameter of the WM_INPUT message.

Remarks

To get more information on the device, use hDevice in a call to GetRawInputDeviceInfo. hDevice can be zero if an input is received from a precision touchpad.

Requirements

Requirement Value
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

Conceptual

GetRawInputDeviceInfo

RAWINPUT structure

RAWKEYBOARD structure

RAWMOUSE structure

RAWHID structure

Raw Input

Reference

WM_INPUT