MCPcopy Create free account
hub / github.com/WallBreaker2/op / IsWindowsVersionAtLeast

Function IsWindowsVersionAtLeast

libop/base/WindowsVersion.cpp:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool IsWindowsVersionAtLeast(DWORD major, DWORD minor, DWORD build) {
47 WindowsVersion current = {};
48 if (!GetWindowsVersion(current)) {
49 return false;
50 }
51
52 if (current.major != major) {
53 return current.major > major;
54 }
55 if (current.minor != minor) {
56 return current.minor > minor;
57 }
58 return current.build >= build;
59}
60
61bool IsWindows10BuildOrGreater(DWORD build) {
62 return IsWindowsVersionAtLeast(10, 0, build);

Callers 3

choose_auto_displaysFunction · 0.85
BindWindowExMethod · 0.85

Calls 1

GetWindowsVersionFunction · 0.85

Tested by

no test coverage detected