🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Can't get the computer to programmatically wake from standby.... (original question in language cpp)

#1312
From: Wiljo
Date: Sat, 15 Sep 2007 17:51
27 lines
2477 bytes
Bob Gonder wrote:
> Remy Lebeau (TeamB) wrote:
> 
>> Not in Standby mode.
> 
> Is there a seperate "Sleep" mode?
> I think this help item is what he was trying to do...
> 
> System Wake-up Events
> Your application can restore an On-Now capable computer that is in a sleeping state to the
> working state by using a scheduled time or a device event. This is known as a wake-up
> event. Use a waitable timer object to specify the time at which the system should wake. To
> create the object, use the CreateWaitableTimer function. To set the timer, use the
> SetWaitableTimer function. The pDueTime parameter specifies when the timer will be
> signaled. To specify that the system should wake when the timer is signaled, set the
> fResume parameter to TRUE.
> 
> 
Thanks,
Yes this is exactly what I want. My computer is On-Now capable, because 
I have another application running, another VCR program, that does wake 
the computer at the correct time, to start recording. However that 
commercial program contains too many bugs, and crashes on a regular 
basis, that is why I am writing my own replacement. According to 
examples on the internet, what I have written should work. But I will 
look into it some more.
Wiljo.
Technical Details
Message-ID: <46ec1be4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46eaf724$1@newsgroups.borland.com> <46eb0592$1@newsgroups.borland.com> <cr5me3lal8ok02r95e5k57v0etnbqg0ho0@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dbb9f35f467d4b41
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 15 Sep 2007 19:51:43 +0200
From: Wiljo <nospam@nospam.com>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Can't get the computer to programmatically wake from standby....
 (original question in language cpp)
References: <46eaf724$1@newsgroups.borland.com> <46eb0592$1@newsgroups.borland.com> <cr5me3lal8ok02r95e5k57v0etnbqg0ho0@4ax.com>
In-Reply-To: <cr5me3lal8ok02r95e5k57v0etnbqg0ho0@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 000774-7, 15-09-2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 81.207.96.243
Message-ID: <46ec1be4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1189878756 81.207.96.243 (15 Sep 2007 10:52:36 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail