Friday, November 9, 2012

Posted by erick | 0 comments

Just for Test


Re-enabling the Screensaver

Re-enabling the screensaver requires that we clear the ES_DISPLAY_REQUIRED state flag. We can do this by passing the ES_CONTINUOUS flag alone:

public static void Enable()
{
    SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);
}

0 comments: