RAWINPUTHEADER structure
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;
Members
- dwType
-
Type: DWORD
-
The type of raw input. It can be one of the following values.
Value Meaning - RIM_TYPEHID
- 2
Raw input comes from some device that is not a keyboard or a mouse.
- RIM_TYPEKEYBOARD
- 1
Raw input comes from the keyboard.
- RIM_TYPEMOUSE
- 0
Raw input comes from the 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.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
See also
- Reference
- GetRawInputDeviceInfo
- RAWHID
- RAWINPUT
- WM_INPUT
- Conceptual
- Raw Input