This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Disabling the ScreenSaver (Desktop Programming, Win32)


Disabling the ScreenSaver (Desktop Programming, Win32)

Postby gamefreaks » Sep 14, 2005 @ 10:43pm

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!!!
What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. -Woody Allen
User avatar
gamefreaks
pm Insider
 
Posts: 466
Joined: Oct 20, 2001 @ 8:52pm
Location: Leicester, England


Postby StephC » Sep 14, 2005 @ 11:08pm

SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, 0, 0);
Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby gamefreaks » Sep 15, 2005 @ 12:08am

Hi,

That looks like what I am after!

Thank you!
What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. -Woody Allen
User avatar
gamefreaks
pm Insider
 
Posts: 466
Joined: Oct 20, 2001 @ 8:52pm
Location: Leicester, England


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron