Windows Mobile 6.5
A version of this page is also available for

This structure contains information about the sticky keys accessibility option. When the sticky keys option is on, the user can press a modifier key and then another key successively, instead of simultaneously, to enter shifted or modified characters and other key combinations. The modifier keys are SHIFT, CTRL, and ALT.

typedef struct tagSTICKYKEYS{
  UINT cbSize;
  DWORD dwFlags;


Unsigned integer that specifies the size, in bytes, of this structure.


DWORD that contains a set of bit flags that specify properties for the sticky keys option. The following table shows the possible values.

Value Description


The system plays a sound when the user latches, locks, or releases modifier keys using the sticky keys option.


The sticky keys option is available for use.


The user can turn the sticky keys option on and off by pressing the SHIFT key five times.


The system plays a siren sound when the user turns the sticky keys option on or off by using the hot key.


The sticky keys option is on.


The user can lock down a modifier key by pressing it twice in a row. The key remains locked down until the user presses it a third time.

Use a STICKYKEYS structure when you call the SystemParametersInfo function with the wAction 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 in the remaining members. Specify all structure members when using the SPI_SETSTICKYKEYS value.

Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions