🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Activating the screen saver or power down the screen

#17259
From: Vladimir Afanasyev
Date: Tue, 01 Apr 2003 11:12
21 lines
1475 bytes
Hi Jacob,

"Jacob Mortensen" <jacob.mortensen@mail.dk> wrote:
>Hi all,
>
>Is there some way to activate the screen saver or to activate the Energy
>Saving function; Power off monitor.
>

You can activate Screen Saver via ShellExecute Win32 API 
function:


ShellExecute(GetDesktopWindow(),
"open","\"C:\\WINNT\\SysInternals Bluescreen.scr\""," /S",
    "C:\\",SW_SHOW);

This way should work (in my opinion) for Win98/Me/NT4/2000/XP.

Vladimir.
Technical Details
Message-ID: <3e897418$1@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!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e870e5c@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 03:24:36 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Activating the screen saver or power down the screen
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References:  <3e870e5c@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3e897418$1@newsgroups.borland.com>
Date: 1 Apr 2003 03:12:24 -0800
X-Trace: newsgroups.borland.com 1049195544 207.105.83.65 (1 Apr 2003 03:12:24 -0800)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail