Skip to content

Commit

Permalink
use SetThreadExecutionState only on XP and above
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 6, 2024
1 parent 895db5b commit fd1bac4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/dllmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ typedef HRESULT(__stdcall* SETPROCESSDPIAWERENESSPROC)(PROCESS_DPI_AWARENESS);
typedef BOOL(__stdcall* SETPROCESSDPIAWAREPROC)();
typedef BOOL(__stdcall* SETPROCESSDPIAWARENESSCONTEXTPROC)(DPI_AWARENESS_CONTEXT);

#if (_WIN32_WINNT < _WIN32_WINNT_WINXP)
#define SetThreadExecutionState(a)
#endif

#endif

0 comments on commit fd1bac4

Please sign in to comment.