🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15481

Re: How to Deactivate Screen Saver temporary?

#15481
From: Phuoc Can HUA
Date: Tue, 01 Jul 2003 01:17
37 lines
2210 bytes
Can you please also give me a piece of code or keywords which I can look 
for in the online help?

thanks
Phuoc

On Mon, 30 Jun 2003 11:44:21 -0400, Michael Kelly <mkelly2002@adelphia.net> 
wrote:

> 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.
>



-- 
_/\__/\__/\__/\__/\__/\_
www.huaonline.com
My Homepage is my Castle
Technical Details
Message-ID: <oprrlxuusobq7az6@newsgroups.borland.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-mail
References: <oprrj2q0xpbq7az6@newsgroups.borland.com> <kmm0gvkurkr9idg6i6s8omvh7113sifidv@4ax.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 18:57:28 PST
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to Deactivate Screen Saver temporary?
References: <oprrj2q0xpbq7az6@newsgroups.borland.com> <kmm0gvkurkr9idg6i6s8omvh7113sifidv@4ax.com>
Message-ID: <oprrlxuusobq7az6@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: Phuoc Can HUA <home}a+t{huaonline.com>
MIME-Version: 1.0
Date: Tue, 01 Jul 2003 11:17:08 +1000
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 210.9.89.210
X-Trace: newsgroups.borland.com 1057022401 210.9.89.210 (30 Jun 2003 18:20:01 -0700)
Lines: 37
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