Skip to content

Commit fd1bac4

Browse files
committed
use SetThreadExecutionState only on XP and above
1 parent 895db5b commit fd1bac4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/dllmain.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ typedef HRESULT(__stdcall* SETPROCESSDPIAWERENESSPROC)(PROCESS_DPI_AWARENESS);
2929
typedef BOOL(__stdcall* SETPROCESSDPIAWAREPROC)();
3030
typedef BOOL(__stdcall* SETPROCESSDPIAWARENESSCONTEXTPROC)(DPI_AWARENESS_CONTEXT);
3131

32+
#if (_WIN32_WINNT < _WIN32_WINNT_WINXP)
33+
#define SetThreadExecutionState(a)
34+
#endif
35+
3236
#endif

0 commit comments

Comments
 (0)