Author: tkreuzer
Date: Thu May 22 09:51:01 2008
New Revision: 33640
URL:
http://svn.reactos.org/svn/reactos?rev=33640&view=rev
Log:
implement SPI_GET/SETSTICKYKEYS, SPI_GET/SETFILTERKEYS, SPI_GET/SETTOGGLEKEYS,
SPI_GET/SETSERIALKEYS, SPI_GET/SETMOUSEKEYS, SPI_GET/SETKEYBOARDPREF,
SPI_GET/SETSHOWSOUNDS, SPI_GET/SETACCESSTIMEOUT
makes access.cpl start again.
See issue #3133 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] Thu May 22
09:51:01 2008
@@ -65,6 +65,14 @@
static UINT FocusBorderHeight = 1;
static UINT FocusBorderWidth = 1;
static ANIMATIONINFO anim;
+ static STICKYKEYS StickyKeys = {sizeof(STICKYKEYS), 0x1fa};
+ static FILTERKEYS FilterKeys = {sizeof(FILTERKEYS), 0, 0, 0, 0, 0};
+ static TOGGLEKEYS ToggleKeys = {sizeof(TOGGLEKEYS), 0};
+ static MOUSEKEYS MouseKeys = {sizeof(MOUSEKEYS), 0, 0, 0, 0, 0, 0};
+ static BOOL KeyboardPref = FALSE;
+ static BOOL ShowSounds = FALSE;
+ static ACCESSTIMEOUT AccessTimeout = {sizeof(ACCESSTIMEOUT), 0, 0};
+ static SERIALKEYS SerialKeys = {sizeof(SERIALKEYS), 0, 0, 0, 0, 0, 0};
if (!bInitialized)
{
@@ -587,6 +595,94 @@
case SPI_SETFOCUSBORDERWIDTH:
{
FocusBorderWidth = (UINT)pvParam;
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETSTICKYKEYS:
+ {
+ *((STICKYKEYS*)pvParam) = StickyKeys;
+ break;
+ }
+ case SPI_SETSTICKYKEYS:
+ {
+ StickyKeys = *((STICKYKEYS*)pvParam);
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETFILTERKEYS:
+ {
+ *((FILTERKEYS*)pvParam) = FilterKeys;
+ break;
+ }
+ case SPI_SETFILTERKEYS:
+ {
+ FilterKeys = *((FILTERKEYS*)pvParam);
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETTOGGLEKEYS:
+ {
+ *((TOGGLEKEYS*)pvParam) = ToggleKeys;
+ break;
+ }
+ case SPI_SETTOGGLEKEYS:
+ {
+ ToggleKeys = *((TOGGLEKEYS*)pvParam);
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETSERIALKEYS:
+ {
+ *((SERIALKEYS*)pvParam) = SerialKeys;
+ break;
+ }
+ case SPI_SETSERIALKEYS:
+ {
+ SerialKeys = *((SERIALKEYS*)pvParam);
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETMOUSEKEYS:
+ {
+ *((MOUSEKEYS*)pvParam) = MouseKeys;
+ break;
+ }
+ case SPI_SETMOUSEKEYS:
+ {
+ MouseKeys = *((MOUSEKEYS*)pvParam);
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETKEYBOARDPREF:
+ {
+ *((BOOL*)pvParam) = KeyboardPref;
+ break;
+ }
+ case SPI_SETKEYBOARDPREF:
+ {
+ KeyboardPref = (BOOL)uiParam;
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETSHOWSOUNDS:
+ {
+ *((BOOL*)pvParam) = ShowSounds;
+ break;
+ }
+ case SPI_SETSHOWSOUNDS:
+ {
+ ShowSounds = (BOOL)uiParam;
+ bChanged = TRUE;
+ break;
+ }
+ case SPI_GETACCESSTIMEOUT:
+ {
+ *((ACCESSTIMEOUT*)pvParam) = AccessTimeout;
+ break;
+ }
+ case SPI_SETACCESSTIMEOUT:
+ {
+ AccessTimeout = *((ACCESSTIMEOUT*)pvParam);
bChanged = TRUE;
break;
}