KEYBOARD_INDICATOR_PARAMETERS structure (ntddkbd.h)
KEYBOARD_INDICATOR_PARAMETERS specifies the state of a keyboard's indicator LEDs.
Syntax
typedef struct _KEYBOARD_INDICATOR_PARAMETERS {
USHORT UnitId;
USHORT LedFlags;
} KEYBOARD_INDICATOR_PARAMETERS, *PKEYBOARD_INDICATOR_PARAMETERS;
Members
UnitId
Specifies 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.
LedFlags
Specifies 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. |
Remarks
This structure is used with IOCTL_KEYBOARD_QUERY_INDICATORS and IOCTL_KEYBOARD_SET_INDICATORS requests to query and set keyboard indicator LEDs.
Requirements
Requirement | Value |
---|---|
Header | ntddkbd.h (include Ntddkbd.h) |
See also
IOCTL_KEYBOARD_QUERY_ATTRIBUTES
IOCTL_KEYBOARD_QUERY_INDICATORS
IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION