Article View: borland.public.cppbuilder.nativeapi
Article #15475Re: How to Deactivate Screen Saver temporary?
From: Michael Kelly
Date: Mon, 30 Jun 2003 15:44
Date: Mon, 30 Jun 2003 15:44
25 lines
1954 bytes
1954 bytes
On Mon, 30 Jun 2003 11:07:38 +1000, Phuoc Can HUA <home}a+t{huaonline.com>
wrote:
>I want to disable the screen saver when my appication is running in full
>screen mode (there's an indicator). I found a solution in this newsgoup
>using intercept Windows messages. Is there another solution by setting a
>flag or something like that?
>
The API SystemParametersInfo lets you get and set the state of
the screensaver. I guess the main trick is saving the old state of
the screen saver and restoring it(I gather the system doesn't
maintain the name of the old saver or something.. you have to
get it and store it yourself.)
There's a little tray utility called Screen Saver Toggle you can
find here http://soulsteam.com but I don't think they give out
the source. You might try emailing the author and see if he's
willing to give you some tips though.
--
"I don't want to belong to any club that would have me as a member."
-- Groucho Marx
Technical Details
Message-ID:
<kmm0gvkurkr9idg6i6s8omvh7113sifidv@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<oprrj2q0xpbq7az6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,17a76b16273c1954 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-30 09:19:14 PST From: Michael Kelly <mkelly2002@adelphia.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to Deactivate Screen Saver temporary? Date: Mon, 30 Jun 2003 11:44:21 -0400 Message-ID: <kmm0gvkurkr9idg6i6s8omvh7113sifidv@4ax.com> References: <oprrj2q0xpbq7az6@newsgroups.borland.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.68.251.232 X-Trace: newsgroups.borland.com 1056987891 68.68.251.232 (30 Jun 2003 08:44:51 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail