Link to home
Start Free TrialLog in
Avatar of mike_marquet
mike_marquet

asked on

Enable / Disabling screen saver via API !

Did someone knows the API function for enabling and disabling the screen saver ?
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nils pipenbrinck
nils pipenbrinck

SystemParametersInfo (SPI_SCREENSAVERRUNNING, ...).

You can use this function to tell windows that a screensaver is already running. It has the neat side effect, that windows won't start another screensaver.

Hope it helps,
  Nils

(zoppo, you where some seconds faster :)
And a bit different: My tip uses SETSCREENSAVEACTIVE instead of SPI_SCREENSAVERRUNNING...
Avatar of mike_marquet

ASKER

Thanks