コード例 #1
0
ファイル: App.xaml.cs プロジェクト: JackieLaw/WpfTimer
 private void AllowMonitorPowerdown()
 {
     SafeNativeMethods.SetThreadExecutionState(SafeNativeMethods.EXECUTION_STATE.ES_CONTINUOUS);
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: JackieLaw/WpfTimer
 private void PreventMonitorPowerdown()
 {
     SafeNativeMethods.SetThreadExecutionState(SafeNativeMethods.EXECUTION_STATE.ES_DISPLAY_REQUIRED | SafeNativeMethods.EXECUTION_STATE.ES_CONTINUOUS);
 }