// ntddkbd.h
typedef struct _KEYBOARD_INDICATOR_PARAMETERS {
USHORT UnitId;
USHORT LedFlags;
} KEYBOARD_INDICATOR_PARAMETERS, *PKEYBOARD_INDICATOR_PARAMETERS;
View the official Win32 API referenceNo description available.
KEYBOARD_INDICATOR_PARAMETERS specifies the state of a keyboard's indicator LEDs.
UnitIdSpecifies the unit number of a keyboard device. A keyboard device name has the format \Device\KeyboardPortN, where the suffix N is the unit number of the device. For example, a device, whose name is \Device\KeyboardPort0, has a unit number of zero, and a device, whose name is \Device\KeyboardPort1, has a unit number of one.
LedFlagsSpecifies a bitwise OR of zero or more of the following LED flags:
| LED Flag | Meaning |
|---|---|
| KEYBOARD_CAPS_LOCK_ON | CAPS LOCK LED is on. |
| KEYBOARD_LED_INJECTED | Used by a Terminal Server. |
| KEYBOARD_NUM_LOCK_ON | NUM LOCK LED is on. |
| KEYBOARD_SCROLL_LOCK_ON | SCROLL LOCK LED is on. |
| KEYBOARD_SHADOW | Used by a Terminal Server. |
This structure is used with IOCTL_KEYBOARD_QUERY_INDICATORS and IOCTL_KEYBOARD_SET_INDICATORS requests to query and set keyboard indicator LEDs.
IOCTL_KEYBOARD_QUERY_ATTRIBUTES
IOCTL_KEYBOARD_QUERY_INDICATORS
IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION
IOCTL_KEYBOARD_QUERY_TYPEMATIC