🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to Deactivate Screen Saver temporary?

#15485
From: Rob
Date: Tue, 01 Jul 2003 12:24
51 lines
2814 bytes
"Phuoc Can HUA" <home}a+t{huaonline.com> wrote in message
news:oprrlxuusobq7az6@newsgroups.borland.com...
> Can you please also give me a piece of code or keywords which I can look
> for in the online help?

Look up the function SystemParametersInfo() in the online help.  In that
page look for the action code SPI_SETSCREENSAVEACTIVE.

Keep in mind that using this method, the changes are permanent
(i.e. they will continue even after your program exits, unless you
specifically reset).

>
> 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: <3f017e55@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed.bc.tac.net!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <oprrj2q0xpbq7az6@newsgroups.borland.com> <kmm0gvkurkr9idg6i6s8omvh7113sifidv@4ax.com> <oprrlxuusobq7az6@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-07-01 05:35:37 PST
From: "Rob" <nospam@nonexistant.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <oprrj2q0xpbq7az6@newsgroups.borland.com> <kmm0gvkurkr9idg6i6s8omvh7113sifidv@4ax.com> <oprrlxuusobq7az6@newsgroups.borland.com>
Subject: Re: How to Deactivate Screen Saver temporary?
Date: Tue, 1 Jul 2003 21:54:09 +0930
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 211.26.121.135
Message-ID: <3f017e55@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057062485 211.26.121.135 (1 Jul 2003 05:28:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed.bc.tac.net!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail