CM_KEYBOARD_DEVICE_DATA - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

typedef struct _CM_KEYBOARD_DEVICE_DATA {
  USHORT Version;
  USHORT Revision;
  UCHAR  Type;
  UCHAR  Subtype;
  USHORT KeyboardFlags;
} CM_KEYBOARD_DEVICE_DATA, *PCM_KEYBOARD_DEVICE_DATA;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-wdm-_cm_keyboard_device_data)

_CM_KEYBOARD_DEVICE_DATA structure

Description

The CM_KEYBOARD_DEVICE_DATA structure defines a device-type-specific data record that is stored in the \Registry\Machine\Hardware\Description tree for a keyboard peripheral if the system can collect this information during the boot process.

Members

Version

The version number of this structure.

Revision

The revision of this structure.

Type

The type of the keyboard.

Subtype

The subtype of the keyboard.

KeyboardFlags

Defined by x86 BIOS INT 16h, function 02 as:

Bit Defined As
7 Insert on.
6 Caps Lock on.
5 Num Lock on.
4 Scroll Lock on.
3 Alt Key is down.
2 Ctrl Key is down.
1 Left shift key is down.
0 Right shift key is down.

See also

CM_PARTIAL_RESOURCE_DESCRIPTOR

IoQueryDeviceDescription

IoReportResourceUsage