Article View: borland.public.cppbuilder.nativeapi
Article #17269Re: Activating the screen saver or power down the screen
From: Remy Lebeau (TeamB)
Date: Tue, 01 Apr 2003 18:52
Date: Tue, 01 Apr 2003 18:52
17 lines
1644 bytes
1644 bytes
"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message news:3e897418$1@newsgroups.borland.com... > This way should work (in my opinion) for Win98/Me/NT4/2000/XP. Not if you hard-code a path like that :-p You would need to first call GetWindowsDirectory() to determine where the Windows folder actually is, and build up the path dynamically. Also note that under Win9x/Me, at least, the screensaver filename is stored in SYSTEM.INI, so you could read that value as well to ensure you're actually starting the user's own configured screensaver. I'm not sure where NT/2K/XP stores it's configuration value, though. Gambit
Technical Details
Message-ID:
<3e89dfd7$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e870e5c@newsgroups.borland.com> <3e897418$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,868977d1fb4469fd X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-01 11:00:47 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e870e5c@newsgroups.borland.com> <3e897418$1@newsgroups.borland.com> Subject: Re: Activating the screen saver or power down the screen Date: Tue, 1 Apr 2003 10:52:07 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e89dfd7$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049223127 207.175.226.26 (1 Apr 2003 10:52:07 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail