Export (0) Print
Expand All

RID_DEVICE_INFO structure

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;
  };
} 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.

ValueMeaning
RIM_TYPEHID
2

Data comes from an HID that is not a keyboard or a mouse.

RIM_TYPEKEYBOARD
1

Data comes from a keyboard.

RIM_TYPEMOUSE
0

Data comes from a mouse.

 

mouse

Type: RID_DEVICE_INFO_MOUSE

If dwType is RIM_TYPEMOUSE, this is the RID_DEVICE_INFO_MOUSE structure that defines the mouse.

keyboard

Type: RID_DEVICE_INFO_KEYBOARD

If dwType is RIM_TYPEKEYBOARD, this is the RID_DEVICE_INFO_KEYBOARD structure that defines the keyboard.

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

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
GetRawInputDeviceInfo
RID_DEVICE_INFO_HID
RID_DEVICE_INFO_KEYBOARD
RID_DEVICE_INFO_MOUSE
Conceptual
Raw Input

 

 

Community Additions

ADD
Show:
© 2014 Microsoft