🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Stopping the Windows Screen Saver...

#16100
From: Simon Elliott
Date: Fri, 30 May 2003 09:04
19 lines
2315 bytes
user@domain.invalid writes
>For what it's worth, I put together a quick test program myself, because 
>I thought the problem with your code was that it wasn't returning 0. My 
>test program stopped the screen saver, but only when it was in the 
>foreground. I didn't think I knew enough to comment before, but maybe 
>these observations will be of some use?

I looked into this in some detail a while ago, and the whole subject of
disabling and stopping screensavers is something of a nightmare. W9x and
NT handle things differently: W2K has its own screensaver desktop where
the screensaver is run.  And you're very dependent on the screensaver
developer voluntarily doing the right thing. 

For what you're trying to do, it might be worth looking at the
SPI_GETSCREENSAVEACTIVE and SPI_SETSCREENSAVEACTIVE parameters of the
SystemParametersInfo API call. 
-- 
Simon Elliott
http://www.ctsn.co.uk/
Technical Details
Message-ID: <417rIEAD6x1+IwlX@courtlands.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!courtlands.demon.co.uk!simon
References: <3ed3d8a9@newsgroups.borland.com> <3ed3e593$1@newsgroups.borland.com> <3ed4d2ab$1@newsgroups.borland.com> <3ed4ecc6$1@newsgroups.borland.com> <3ed50329$1@newsgroups.borland.com> <3ED5EF6B.8010902@domain.invalid>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,51aedba360c457e2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-30 02:30:42 PST
Message-ID: <417rIEAD6x1+IwlX@courtlands.demon.co.uk>
Date: Fri, 30 May 2003 10:04:03 +0100
From: Simon Elliott <simon@nospam.demon.co.uk>
Reply-To: Simon Elliott <news@courtlands.demon.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Stopping the Windows Screen Saver...
References: <3ed3d8a9@newsgroups.borland.com>
 <3ed3e593$1@newsgroups.borland.com> <3ed4d2ab$1@newsgroups.borland.com>
 <3ed4ecc6$1@newsgroups.borland.com> <3ed50329$1@newsgroups.borland.com>
 <3ED5EF6B.8010902@domain.invalid>
Lines: 25
Organization: Courtlands Technical Services
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 4.02 U <aLIvuQCpEWZ0Tu7eytpxRhrSSE>
NNTP-Posting-Host: 158.152.154.121
X-Trace: newsgroups.borland.com 1054285472 158.152.154.121 (30 May 2003 02:04:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!courtlands.demon.co.uk!simon