STICKYKEYS structure (winuser.h)
Contains information about the StickyKeys accessibility feature. When the StickyKeys feature is on, the user can press a modifier key (SHIFT, CTRL, or ALT) and then another key in sequence rather than at the same time, to enter shifted (modified) characters and other key combinations. Pressing a modifier key once latches the key down until the user presses a non-modifier key or clicks a mouse button. Pressing a modifier key twice locks the key until the user presses the key a third time.
Syntax
typedef struct tagSTICKYKEYS {
UINT cbSize;
DWORD dwFlags;
} STICKYKEYS, *LPSTICKYKEYS;
Members
cbSize
Type: DWORD
Specifies the size, in bytes, of this structure.
dwFlags
Type: DWORD
A set of bit-flags that specify properties of the StickyKeys feature. The following bit-flag values are defined:
Remarks
An application uses a STICKYKEYS structure when calling the SystemParametersInfo function with the uiAction parameter set to SPI_GETSTICKYKEYS or SPI_SETSTICKYKEYS. When using SPI_GETSTICKYKEYS, you must specify the cbSize member of the STICKYKEYS structure; the SystemParametersInfo function fills the remaining members. You must specify all structure members when using the SPI_SETSTICKYKEYS value.
If you call SystemParametersInfo with the SPI_SETSTICKYKEYS value, the following flags are ignored:
- SKF_LALTLATCHED
- SKF_LCTLLATCHED
- SKF_LSHIFTLATCHED
- SKF_RALTLATCHED
- SKF_RCTLLATCHED
- SKF_RSHIFTLATCHED
- SKF_LALTLOCKED
- SKF_LCTLLOCKED
- SKF_LSHIFTLOCKED
- SKF_RALTLOCKED
- SKF_RCTLLOCKED
- SKF_RSHIFTLOCKED
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | winuser.h (include Windows.h) |