PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Disabling the ScreenSaver (Desktop Programming, Win32)

Hi people,

A quick question,

Does anyone know of a 'clean' way to programmatically disable the screensaver under Windows? (2K/XP/2K3)

I want to write a quick tray applet that will disable the screensaver when it detects certain apps are running.

Thanks for reading.

-Zak

Edit: Spell-Check!!!
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, 0, 0);
Hi,

That looks like what I am after!

Thank you!