• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Turning off/on screen saver by an application

I would like to turn off a screen saver (if  anyone is active) by my application (written in Borland C++ 5.02) and to restore its previous state at end of program. How can I do it ?
In June 1999 I received your response (from cpopin) indicating the key ScreenSave in Registry. Unfortunately I couldn't find such a key using my Regedit application. Are the informations about current screen saver anywhere in Registry ? I work with Windows 98 release 2
Thank you in advance for response
0
rainette
Asked:
rainette
1 Solution
 
chensuCommented:
Use the SystemParametersInfo function with SPI_GETSCREENSAVEACTIVE and SPI_SETSCREENSAVEACTIVE.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now