Click to See Complete Forum and Search --> : How to go to standby and come back


shelly73
April 21st, 2003, 02:49 AM
Hi!
I am going to standby using the API SetSuspendState and setting a timer for 30 seconds. after the timer fires, the system starts but the monior does not. The monitor starts when a key is pressed. I want to make it automatic. Can someone please tell me what can be done to wake up the monitor?

Thanks!
Shelly.

mahanare
April 22nd, 2003, 01:30 AM
i have no info to help u... the following link may not be that useful but have a look at it.
http://callpath.genesyslab.com/docs63/html/cpsprog/bprgdm40.htm#HDRSETAPCL
cheers
mahanare

shelly73
April 29th, 2003, 04:51 AM
hi !
the link is of no help. i have got an application which does bring the monitor back but i dont have the source code of it. can someone suggest how to bring the monitor up after coming back from standby?

Cheers!
Shelly.

snuff78
June 21st, 2003, 05:43 AM
Try using SetThreadExecutionState to set the state to ES_DISPLAYREQUIRED. Make sure you specify only display required and nothing else. This can be put in the code where the system wakes up, like after the WaitForSingleObject etc.

Hope this helps...