[Windows] Drop support for Windows 7/8/8.1.

This commit is contained in:
Pāvels Nadtočajevs 2025-05-30 11:15:06 +03:00
parent b89c47bb85
commit 617e12a6b4
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
11 changed files with 45 additions and 376 deletions

View file

@ -130,19 +130,11 @@ bool get_latest_fxr(const String &fxr_root, String &r_fxr_path) {
}
#ifdef WINDOWS_ENABLED
typedef BOOL(WINAPI *LPFN_ISWOW64PROCESS)(HANDLE, PBOOL);
BOOL is_wow64() {
BOOL wow64 = FALSE;
LPFN_ISWOW64PROCESS fnIsWow64Process = (LPFN_ISWOW64PROCESS)(void *)GetProcAddress(GetModuleHandle(TEXT("kernel32")), "IsWow64Process");
if (fnIsWow64Process) {
if (!fnIsWow64Process(GetCurrentProcess(), &wow64)) {
wow64 = FALSE;
}
if (!IsWow64Process(GetCurrentProcess(), &wow64)) {
wow64 = FALSE;
}
return wow64;
}
#endif