KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have to stop windows from going into sleep when my program is running. And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep. Therefore SetThreadExecutionState is not enough. Or...I don't actually have to prevent the sleep completely, only delay it 5-10sec to allow my program to finish a task. (I know that this is bad program behavior but it's only for personal use.)
Tags (comma-separated)
Save Edits
Cancel