RID_DEVICE_INFO_KEYBOARD structure (winuser.h)
Defines the raw input data coming from the specified keyboard.
Syntax
typedef struct tagRID_DEVICE_INFO_KEYBOARD {
DWORD dwType;
DWORD dwSubType;
DWORD dwKeyboardMode;
DWORD dwNumberOfFunctionKeys;
DWORD dwNumberOfIndicators;
DWORD dwNumberOfKeysTotal;
} RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
Members
dwType
Type: DWORD
The type of keyboard. See Remarks.
Value | Description |
---|---|
0x4 | Enhanced 101- or 102-key keyboards (and compatibles) |
0x7 | Japanese Keyboard |
0x8 | Korean Keyboard |
0x51 | Unknown type or HID keyboard |
dwSubType
Type: DWORD
The vendor-specific subtype of the keyboard. See Remarks.
dwKeyboardMode
Type: DWORD
The scan code mode. Usually 1, which means that Scan Code Set 1 is used. See Keyboard Scan Code Specification.
dwNumberOfFunctionKeys
Type: DWORD
The number of function keys on the keyboard.
dwNumberOfIndicators
Type: DWORD
The number of LED indicators on the keyboard.
dwNumberOfKeysTotal
Type: DWORD
The total number of keys on the keyboard.
Remarks
For information about keyboard types, subtypes, scan code modes, and related keyboard layouts, see the documentation in kbd.h, ntdd8042.h and ntddkbd.h headers in Windows SDK, and the Keyboard Layout Samples.
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