Article View: borland.public.cppbuilder.nativeapi
Article #16165Re: Stopping the Windows Screen Saver...
From: user
Date: Thu, 29 May 2003 11:30
Date: Thu, 29 May 2003 11:30
35 lines
2511 bytes
2511 bytes
Mike Collins wrote: > Thanks anyway - logic would say that it MUST be something that I have > overlooked or missed out. Just wanted to check that this method still > worked with the Win NT family as well as the Win 95/98. I know that the > whole screen saver set up is a bit different in 2k and runs under its own > desktop so I thought there might be something there. I'll go back and have > another look - althought there isn't much code to look at. > > Thanks again, > > Mike C > > > > >>>Any ideas, any thoughts what could be >>>going wrong or how I should bebug this? >> >>Sorry, I don't know what else to say. As mentioned earlier, your code did >>work fine for me on my Win2K box. It's also the same kind of code used in >>my company's own software and works fine under NT, 2K, and XP as expected. >> >> >>Gambit >> >> > > > 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?
Technical Details
Message-ID:
<3ED5EF6B.8010902@domain.invalid>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!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:
<3ed3d8a9@newsgroups.borland.com> <3ed3e593$1@newsgroups.borland.com> <3ed4d2ab$1@newsgroups.borland.com> <3ed4ecc6$1@newsgroups.borland.com> <3ed50329$1@newsgroups.borland.com>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-29 04:34:54 PST Message-ID: <3ED5EF6B.8010902@domain.invalid> Date: Thu, 29 May 2003 07:30:51 -0400 From: user@domain.invalid User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.162.138.29 X-Trace: newsgroups.borland.com 1054207867 68.162.138.29 (29 May 2003 04:31:07 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!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