Article View: borland.public.cppbuilder.nativeapi
Article #15990Re: Prevent hibernation?
From: Randy
Date: Tue, 03 Jun 2003 15:58
Date: Tue, 03 Jun 2003 15:58
14 lines
1408 bytes
1408 bytes
In article <3edb7a89$1@newsgroups.borland.com>, "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> says... > > "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. Thanks Remy. Thats exactly what I needed!
Technical Details
Message-ID:
<MPG.19468fca25959cad98968d@newsgroups.borland.com>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!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<MPG.19452ad7d51f307398968c@newsgroups.borland.com> <3edb7a89$1@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-03 09:02:07 PST From: Randy <banjolicious@netscape.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Prevent hibernation? Date: Tue, 3 Jun 2003 11:58:59 -0400 Message-ID: <MPG.19468fca25959cad98968d@newsgroups.borland.com> References: <MPG.19452ad7d51f307398968c@newsgroups.borland.com> <3edb7a89$1@newsgroups.borland.com> Organization: Dorsett's, Inc X-Newsreader: MicroPlanet Gravity v2.50 NNTP-Posting-Host: 65.40.171.196 X-Trace: newsgroups.borland.com 1054655937 65.40.171.196 (3 Jun 2003 08:58:57 -0700) Lines: 14 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!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail