예제 #1
0
 private void AllowMonitorPowerdown()
 {
     SafeNativeMethods.SetThreadExecutionState(SafeNativeMethods.EXECUTION_STATE.ES_CONTINUOUS);
 }
예제 #2
0
 private void PreventMonitorPowerdown()
 {
     SafeNativeMethods.SetThreadExecutionState(SafeNativeMethods.EXECUTION_STATE.ES_DISPLAY_REQUIRED | SafeNativeMethods.EXECUTION_STATE.ES_CONTINUOUS);
 }