RID_DEVICE_INFO structure (winuser.h)
Defines the raw input data coming from any device.
Syntax
typedef struct tagRID_DEVICE_INFO {
DWORD cbSize;
DWORD dwType;
union {
RID_DEVICE_INFO_MOUSE mouse;
RID_DEVICE_INFO_KEYBOARD keyboard;
RID_DEVICE_INFO_HID hid;
} DUMMYUNIONNAME;
} RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
Members
cbSize
Type: DWORD
The size, in bytes, of the RID_DEVICE_INFO structure.
dwType
Type: DWORD
The type of raw input data. This member can be one of the following values.
Value | Meaning |
---|---|
|
Data comes from a mouse. |
|
Data comes from a keyboard. |
|
Data comes from an HID that is not a keyboard or a mouse. |
DUMMYUNIONNAME
DUMMYUNIONNAME.mouse
Type: RID_DEVICE_INFO_MOUSE
If dwType is RIM_TYPEMOUSE, this is the RID_DEVICE_INFO_MOUSE structure that defines the mouse.
DUMMYUNIONNAME.keyboard
Type: RID_DEVICE_INFO_KEYBOARD
If dwType is RIM_TYPEKEYBOARD, this is the RID_DEVICE_INFO_KEYBOARD structure that defines the keyboard.
DUMMYUNIONNAME.hid
Type: RID_DEVICE_INFO_HID
If dwType is RIM_TYPEHID, this is the RID_DEVICE_INFO_HID structure that defines the HID device.
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
Reference