| 36 | } |
| 37 | |
| 38 | BOOL IsWindows11() |
| 39 | { |
| 40 | HMODULE hKern32 = GetModuleHandleW(L"kernel32.dll"); |
| 41 | return GetProcAddress(hKern32, "Wow64SetThreadDefaultGuestMachine") != NULL; // Win11 21h2+ |
| 42 | } |
| 43 | |
| 44 | BOOL IsWindows10_Only() |
| 45 | { |
no outgoing calls
no test coverage detected