MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / IsWindows10_Only

Function IsWindows10_Only

launcher/ui/WinDarkmode.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44BOOL IsWindows10_Only()
45{
46 HMODULE hKern32 = GetModuleHandleW(L"kernel32.dll");
47 HMODULE hNtuser = GetModuleHandleW(L"ntdll.dll");
48 return GetProcAddress(hKern32, "SetThreadSelectedCpuSets") != NULL
49 && GetProcAddress(hNtuser, "ZwSetInformationCpuPartition") == NULL;
50}
51
52BOOL IsWindows8_0_Only()
53{

Callers 1

setWindowDarkModeEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected