The API call succeeded, but the screensaver was still activated by the system.ĭuring analysis of this problem I opened the screensaver configuration page ( desk.cpl, Screen Saver tab) and found that the screensaver selection dropdown combobox was disabled. This worked on an Windows XP Professional development system, but it failed to disable the screensaver on the Windows XP Embedded target device. SetSystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0 | 1, null, SPIF_UPDATEINIFILE| SPIF_SENDCHANGE) Enabling/disabling the screensaver was implemented through the following Win32 API call:
The Windows XP Embedded device has a custom (touchscreen) GUI for modifying the screensaver timeout and enabling/disabling the screensaver. Today I had to fix a problem on a Windows XP Embedded system where it was not possible to disable the Windows screensaver.