mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user