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

Function GetWindowsVersion

libop/base/WindowsVersion.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27} // namespace
28
29bool GetWindowsVersion(WindowsVersion &out) {
30 RTL_OSVERSIONINFOW info = {};
31 if (!QueryWindowsVersion(info)) {
32 return false;
33 }
34
35 out.major = info.dwMajorVersion;
36 out.minor = info.dwMinorVersion;
37 out.build = info.dwBuildNumber;
38 return true;
39}
40
41DWORD GetWindowsBuildNumber() {
42 WindowsVersion version = {};

Callers 2

GetWindowsBuildNumberFunction · 0.85
IsWindowsVersionAtLeastFunction · 0.85

Calls 1

QueryWindowsVersionFunction · 0.85

Tested by

no test coverage detected