🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using codes to change Power buttons to "shutdown" or "hibernate"

#2345
From: jason tan
Date: Mon, 05 Mar 2007 06:05
9 lines
1167 bytes
Hi all

Can we use codes or registry to control what the Power buttons in "Power 
Options Properties -> Advanced" do.
I'm trying to write an app to shutdown or hibernate by pressing the Power 
button on the PC with an external device.

Thx
Jason 
Technical Details
Message-ID: <45ebb2fb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1d8a07e886abb1d0,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "jason tan" <taz5176@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Using codes to change Power buttons to "shutdown" or "hibernate"
Date: Mon, 5 Mar 2007 14:05:43 +0800
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 192.55.16.36
Message-ID: <45ebb2fb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173074683 192.55.16.36 (4 Mar 2007 22:04:43 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail