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?
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.