Author: greatlrd
Date: Sat Jul 14 18:52:10 2007
New Revision: 27660
URL:
http://svn.reactos.org/svn/reactos?rev=27660&view=rev
Log:
add activate of screensaver when they are being selected.
we do not set or read register value for it yet, so defualt is the screensaver offline
until u go into desk.cpl and select a screensaver.
Modified:
trunk/reactos/dll/cpl/desk/screensaver.c
Modified: trunk/reactos/dll/cpl/desk/screensaver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/screensaver.c…
==============================================================================
--- trunk/reactos/dll/cpl/desk/screensaver.c (original)
+++ trunk/reactos/dll/cpl/desk/screensaver.c Sat Jul 14 18:52:10 2007
@@ -709,12 +709,16 @@
case PSN_SETACTIVE:
{
+ /* activate screen saver support */
+ SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, TRUE, 0,
SPIF_SENDCHANGE);
SetScreenSaverPreviewBox(hwndDlg, pGlobalData);
break;
}
case PSN_KILLACTIVE:
{
+ /* Disable screensaver support */
+ SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, FALSE, 0,
SPIF_SENDCHANGE);
if (pGlobalData->PrevWindowPi.hProcess)
{
TerminateProcess(pGlobalData->PrevWindowPi.hProcess, 0);