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

Function IsWindows8_1_Only

launcher/ui/WinDarkmode.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59BOOL IsWindows8_1_Only()
60{
61 HMODULE hKern32 = GetModuleHandleW(L"kernel32.dll");
62 return GetProcAddress(hKern32, "CalloutOnFiberStack") != NULL // Export added in 6.3 (8.1), Removed in 10.0.10586
63 && GetProcAddress(hKern32, "SetThreadSelectedCpuSets") == NULL; // Export added in 10.0 (10)
64}
65
66void setWindowDarkModeEnabled(HWND hWnd, bool Enabled)
67{

Callers 1

setWindowDarkModeEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected