MCPcopy Create free account
hub / github.com/MultiMC/Launcher / getKernelInfo

Method getKernelInfo

libraries/systeminfo/src/sys_win32.cpp:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "ntstatus/NtStatusNames.hpp"
7
8Sys::KernelInfo Sys::getKernelInfo()
9{
10 Sys::KernelInfo out;
11 out.kernelType = KernelType::Windows;
12 out.kernelName = "Windows";
13 OSVERSIONINFOW osvi;
14 ZeroMemory(&osvi, sizeof(OSVERSIONINFOW));
15 osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
16 GetVersionExW(&osvi);
17 out.kernelVersion = QString("%1.%2").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion);
18 out.kernelMajor = osvi.dwMajorVersion;
19 out.kernelMinor = osvi.dwMinorVersion;
20 out.kernelPatch = osvi.dwBuildNumber;
21 return out;
22}
23
24uint64_t Sys::getSystemRam()
25{

Callers

nothing calls this directly

Calls 1

QStringClass · 0.85

Tested by

no test coverage detected