🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: preventing standby

#12778
From: Remy Lebeau (TeamB)
Date: Mon, 17 Nov 2003 17:44
14 lines
1399 bytes
"PaoloItaly" <paolo@sirius-es.it> wrote in message
news:3fb88e1e$1@newsgroups.borland.com...
> On a win2000 i intercept the WM_POWERBROADCAST
> message and i return PBT_APMQUERYSUSPENDFAILED

You are not returning the correct value.  You should be returning
BROADCAST_QUERY_DENY instead.  PBT_APMQUERYSUSPENDFAILED is an event type of
WM_POWERBROADCAST, like PBT_APMQUERYSUSPEND is (which I assume is what you
are responding to in the first place).  PBT_APMQUERYSUSPENDFAILED is not a
return value.


Gambit
Technical Details
Message-ID: <3fb9081c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fb88e1e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7a4add9c9d3ac02c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-17 10:10:07 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fb88e1e$1@newsgroups.borland.com>
Subject: Re: preventing standby
Date: Mon, 17 Nov 2003 09:44:15 -0800
Lines: 16
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: 67.22.137.149
Message-ID: <3fb9081c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069090844 67.22.137.149 (17 Nov 2003 09:40:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail