FILTERKEYS structure (winuser.h)
Contains information about the FilterKeys accessibility feature, which enables a user with disabilities to set the keyboard repeat rate (RepeatKeys), acceptance delay (SlowKeys), and bounce rate (BounceKeys).
Syntax
typedef struct tagFILTERKEYS {
UINT cbSize;
DWORD dwFlags;
DWORD iWaitMSec;
DWORD iDelayMSec;
DWORD iRepeatMSec;
DWORD iBounceMSec;
} FILTERKEYS, *LPFILTERKEYS;
Members
cbSize
Type: UINT
Specifies the structure size, in bytes.
dwFlags
Type: DWORD
A set of bit flags that specify properties of the FilterKeys feature. The following bit-flag values are defined:
iWaitMSec
Type: DWORD
Specifies the length of time, in milliseconds, that the user must hold down a key before it is accepted by the computer.
iDelayMSec
Type: DWORD
Specifies the length of time, in milliseconds, that the user must hold down a key before it begins to repeat.
iRepeatMSec
Type: DWORD
Specifies the length of time, in milliseconds, between each repetition of the keystroke.
iBounceMSec
Type: DWORD
Specifies the length of time, in milliseconds, that must elapse after releasing a key before the computer will accept a subsequent press of the same key.
Remarks
Use a FILTERKEYS structure when calling the SystemParametersInfo function with the uiAction parameter set to the SPI_GETFILTERKEYS or SPI_SETFILTERKEYS value. When using SPI_GETFILTERKEYS, you must specify the cbSize member of the FILTERKEYS structure; the SystemParametersInfo function fills the remaining members. Specify all structure members when using the SPI_SETFILTERKEYS value.
The iBounceMSec member controls the BounceKeys feature, and the iWaitMSec, iDelayMSec, and iRepeatMSec members work together to control the RepeatKeys and SlowKeys features. If BounceKeys is on (that is, iBounceMSec is nonzero), the RepeatKeys and SlowKeys features are off (that is, the iWaitMSec, iDelayMSec, and iRepeatMSec members must all be zero). Similarly, if BounceKeys is off (iBounceMSec is zero), the iWaitMSec, iDelayMSec, and iRepeatMSec must all be nonzero.
The maximum value of the iBounceMSec, iWaitMSec, iDelayMSec, and iRepeatMSec members is 20,000 milliseconds.
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) |