Article View: borland.public.cppbuilder.nativeapi
Article #100Re: Which API can detect the PC going sleep?
From: Colin B Maharaj
Date: Thu, 26 Jun 2008 12:26
Date: Thu, 26 Jun 2008 12:26
18 lines
1426 bytes
1426 bytes
Hi Remy, Is it possible to know if the sleep mode is available or turned on? Remy Lebeau (TeamB) wrote: > "James5950" <James@1come.com.tw> wrote in message > news:485c4381@newsgroups.borland.com... > >> My application need close before PC into sleep mode. >> How can I do now? > > Intercept the WM_POWERBROADCAST message and look for the PBT_APMSUSPEND > notification. > > > Gambit > >
Technical Details
Message-ID:
<48638b09$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<485c4381@newsgroups.borland.com> <485c496b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8971e4a327b29d5e X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 26 Jun 2008 08:26:51 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Which API can detect the PC going sleep? References: <485c4381@newsgroups.borland.com> <485c496b$1@newsgroups.borland.com> In-Reply-To: <485c496b$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080626-0, 06/26/2008), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 190.58.98.8 Message-ID: <48638b09$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214483209 190.58.98.8 (26 Jun 2008 05:26:49 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail