|
-
March 31st, 2011, 05:18 AM
#8
Re: Wake monitor from sleep... updated method
OK, firstly don't shoot me, I come in peace 
What if we can totally prevent the PC from going into sleep mode, throughout the use of our application? What I'm trying to say is that you can use the SetThreadExecutionState Api with the ES_DISPLAY_REQUIRED + ES_CONTINUOUS constants to ensure that the monitor doesn't go into sleep mode while your program is running. Then, whilst exiting your app, you could use the same API only with the ES_CONTINUOUS constant
Just an idea....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|