🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1314
From: Remy Lebeau (TeamB)
Date: Sun, 16 Sep 2007 03:48
25 lines
2111 bytes
"Wiljo" <nospam@nospam.com> wrote in message
news:46ec1d00@newsgroups.borland.com...

> That is what waitable timers are all about.

That is not what waitable timers are all about.  The feature you are trying
to use is just a small piece of what they are primarily meant for - an event
object that can be waited on via the various Msg/WaitFor...() functions,
that is automatically signalled at a specific time by the OS instead of the
application.  Waking up the machine from Standby is a secondary effect.  The
wakeup feature is barely mentioned in the several pages of documentation
Microsoft has on what waitable timers are and how to use them.

> It just doesn't work in my case.

I tested the exact code you provided earlier, and it works as-is for me on
my XP laptop without any problem.  When entering Standby mode, the display
and all of the lights turn off.  Exactly 1 minute later, all of the lights
turn back on (but not the display, as per MSDN's documentation) and the
program's UI has been updated with the correct timestamp.  So I'm guessing
that the problem is with your machine/OS, not your code.


Gambit
Technical Details
Message-ID: <46eca7c2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46eaf724$1@newsgroups.borland.com> <46eb0592$1@newsgroups.borland.com> <46ec1d00@newsgroups.borland.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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46eaf724$1@newsgroups.borland.com> <46eb0592$1@newsgroups.borland.com> <46ec1d00@newsgroups.borland.com>
Subject: Re: Can't get the computer to programmatically wake from standby.... (original question in language cpp)
Date: Sat, 15 Sep 2007 20:48:24 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.29.61
Message-ID: <46eca7c2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1189914562 75.83.29.61 (15 Sep 2007 20:49:22 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail