add some more _WIN32_WINNT defines to hook Win vista+ APIs when compiler is targeting XP (#568)

There's already a bunch of these in the codebase, this just catches a
few locations where they were missed when the compiler is targeting XP.
This commit is contained in:
Will
2026-03-07 08:21:55 +10:00
committed by GitHub
parent 22aeb64ff9
commit 837c8a46d6
4 changed files with 21 additions and 9 deletions
+3
View File
@@ -1,3 +1,6 @@
// QueryDisplayConfig
#define _WIN32_WINNT 0x0601
#include "pc.h"
#include <format>
+3
View File
@@ -1,3 +1,6 @@
// GetLocaleInfoEx
#define _WIN32_WINNT 0x0600
#include "lang.h"
#define WIN32_NO_STATUS
+3
View File
@@ -1,3 +1,6 @@
// DisplayConfigSetDeviceInfo
#define _WIN32_WINNT 0x0601
#include "winuser.h"
#include "util/detour.h"
+3
View File
@@ -1,3 +1,6 @@
// GetCurrentProcessorNumberEx
#define _WIN32_WINNT 0x0601
#include "cpuutils.h"
#include <thread>