adding SPI_SETSCREENSAVEACTIVE now, it can be set to false or true

false for no screen saver and true for screensaver. 

svn path=/trunk/; revision=27657
This commit is contained in:
Magnus Olsen 2007-07-14 14:17:54 +00:00
parent b63aeeb74d
commit b2272ba67c
3 changed files with 16 additions and 9 deletions

View file

@ -34,10 +34,12 @@ typedef struct _WINSTATION_OBJECT
HANDLE ShellWindow;
HANDLE ShellListView;
BOOL FlatMenu;
/* ScreenSaver */
BOOL ScreenSaverRunning;
UINT ScreenSaverTimeOut;
BOOL FlatMenu;
/* ScreenSaver */
BOOL ScreenSaverRunning;
UINT ScreenSaverTimeOut;
/* Should this be on each desktop ? */
BOOL ScreenSaverActive;
/* Wallpaper */
HANDLE hbmWallpaper;

View file

@ -958,6 +958,9 @@ IntSystemParametersInfo(
/* FIXME: Implement this, don't just return constant */
*(PBOOL)pvParam = FALSE;
break;
case SPI_GETKEYBOARDCUES:
case SPI_SETDOUBLECLKWIDTH:
case SPI_SETDOUBLECLKHEIGHT:
@ -1025,10 +1028,11 @@ IntSystemParametersInfo(
if (pvParam != NULL) *((BOOL*)pvParam) = WinStaObject->ScreenSaverRunning;
WinStaObject->ScreenSaverRunning = uiParam;
break;
case SPI_SETSCREENSAVEACTIVE:
WinStaObject->ScreenSaverActive = uiParam;
break;
case SPI_GETSCREENSAVEACTIVE:
/* FIXME: how to disable the screensaver? */
ASSERT(pvParam);
*((BOOL*)pvParam) = TRUE;
if (pvParam != NULL) *((BOOL*)pvParam) = WinStaObject->ScreenSaverActive;
break;
case SPI_GETWHEELSCROLLLINES:
ASSERT(pvParam);

View file

@ -537,8 +537,9 @@ NtUserCreateWindowStation(
CurInfo->MouseHoverWidth = 4;
CurInfo->MouseHoverHeight = 4;
WindowStationObject->ScreenSaverTimeOut = 10 * 60;
WindowStationObject->SystemCursor = CurInfo;
WindowStationObject->ScreenSaverActive = FALSE;
WindowStationObject->ScreenSaverTimeOut = 10;
WindowStationObject->SystemCursor = CurInfo;
/* END FIXME loading from register */