diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
commit | 98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch) | |
tree | faadc6d8822c20cd3bc6f50b2a98e6c580585949 /shared/disable_standby.h | |
parent | 3.16 (diff) | |
download | FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2 FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip |
3.17
Diffstat (limited to 'shared/disable_standby.h')
-rw-r--r-- | shared/disable_standby.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/shared/disable_standby.h b/shared/disable_standby.h index 399d0b9c..1a2a2b8a 100644 --- a/shared/disable_standby.h +++ b/shared/disable_standby.h @@ -10,20 +10,17 @@ namespace util class DisableStandby { public: +#ifdef FFS_WIN DisableStandby() { -#ifdef FFS_WIN ::SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED /* | ES_AWAYMODE_REQUIRED*/ ); -#endif } ~DisableStandby() { -#ifdef FFS_WIN ::SetThreadExecutionState(ES_CONTINUOUS); -#endif } - +#endif }; } |