Power management

Here's what I want to do: I want to run a program as a scheduled task that could run, say, at 3:00 am. Normally, the system is in sleep mode at that time so the system will wake up, run the program, then go back to sleep mode. Now, the problem is that system may not necessarily be in sleep mode.
What I'd like to do is check whether the system was woken up to run the program. Is there an API call to do this?

EDIT: IsSystemResumeAutomatic() seems to work.
Last edited on
closed account (S6k9GNh0)
HelioS, you seem to post some rather strange posts for being a rather experienced user.
That's what the wise man does.
He asks questions, looking for more knowledge.
closed account (S6k9GNh0)
Yeah but he usually figures out the question before any of us or it's a question he's capable of dealing with himself. No grudge, just wierd. :D
It's more efficient to continue looking for an answer while also waiting for one than to just wait. This one in particular was one I wasn't sure how to look up or whether it existed, which is why I asked.
You have to give it to Microsoft. They put in their API every function you could possibly need to interact with the environment.
Topic archived. No new replies allowed.