| 27 | } // namespace |
| 28 | |
| 29 | bool 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 | |
| 41 | DWORD GetWindowsBuildNumber() { |
| 42 | WindowsVersion version = {}; |
no test coverage detected