🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Prevent hibernation?

#16063
From: Remy Lebeau (TeamB)
Date: Mon, 02 Jun 2003 16:28
12 lines
1329 bytes
"Randy" <banjolicious@netscape.net> wrote in message
news:MPG.19452ad7d51f307398968c@newsgroups.borland.com...

> Is there a way to programatically prevent hibernation
> temporarily? I'm running on WinNT / 2000 / XP

Intercept the WM_POWERBROADCAST message, test for the PBT_APMQUERYSUSPEND
notification, and if found then return BROADCAST_QUERY_DENY.


Gambit
Technical Details
Message-ID: <3edb7a89$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <MPG.19452ad7d51f307398968c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2e7034bb10b2b8f4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-02 09:35:56 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <MPG.19452ad7d51f307398968c@newsgroups.borland.com>
Subject: Re: Prevent hibernation?
Date: Mon, 2 Jun 2003 09:28:44 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3edb7a89$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054571145 207.175.226.26 (2 Jun 2003 09:25:45 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail