private void AllowMonitorPowerdown() { SafeNativeMethods.SetThreadExecutionState(SafeNativeMethods.EXECUTION_STATE.ES_CONTINUOUS); }
private void PreventMonitorPowerdown() { SafeNativeMethods.SetThreadExecutionState(SafeNativeMethods.EXECUTION_STATE.ES_DISPLAY_REQUIRED | SafeNativeMethods.EXECUTION_STATE.ES_CONTINUOUS); }