New
#31
No. That is not my main concern - in fact it has nothing to do with my concern.
My concern is that sleep mode (as defined by Mr. Softy) actually means "put the computer into sleep mode if the user is idle". It has nothing to with whether the computer is idle or not. That makes no sense to me.
To prove my point, if the user initiates one or more programs which are actively running and performing work, and the user either falls asleep, drops dead or leaves the computer to do whatever, sleep mode is entered after x minutes (assuming the sleep mode feature is "turned-on").
Yes, I understand how Win7 sleep mode works - no, I don't agree with it's implementation.
Yup, it's when the USER is idle, so when the computer detects no keyboard/mouse input for X time.
LOL@the user dropping dead :)
I think this is what I've been looking for ...
SetThreadExecutionState function
"Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running."
Exactly!