title | ms.assetid | description | ms.topic | ms.date |
---|---|---|---|---|
Enabling a Built-in Accessibility Feature |
f97a445d-f93d-4462-bce5-d853f5076b9c |
Learn more about: Enabling a Built-in Accessibility Feature |
article |
05/31/2018 |
The following code fragment uses the SystemParametersInfo function to enable the FilterKeys feature:
FILTERKEYS fk;
BOOL bSuccess;
// Fill in the members of the FILTERKEYS structure.
fk.cbSize = sizeof(FILTERKEYS);
fk.dwFlags = (FKF_FILTERKEYSON | FKF_HOTKEYACTIVE |
FKF_AVAILABLE | FKF_HOTKEYSOUND |
FKF_CLICKON);
fk.iWaitMSec = 1000;
fk.iDelayMSec = 1000;
fk.iRepeatMSec = 500;
fk.iBounceMSec = 0;
// Call SystemParametersInfo with the SPI_SETFILTERKEYS flag.
bSuccess = SystemParametersInfo(SPI_SETFILTERKEYS, 0, (LPVOID)
&fk, 0);