diff options
Diffstat (limited to 'libraries/ganalytics/src/sys_win32.cpp')
-rw-r--r-- | libraries/ganalytics/src/sys_win32.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/libraries/ganalytics/src/sys_win32.cpp b/libraries/ganalytics/src/sys_win32.cpp index c2c913ef..4d43169b 100644 --- a/libraries/ganalytics/src/sys_win32.cpp +++ b/libraries/ganalytics/src/sys_win32.cpp @@ -2,21 +2,15 @@ #include <windows.h> -QString Sys::getSystemInfo() +Sys::KernelInfo Sys::getKernelInfo() { - static QString cached; - if(!cached.isNull()) - { - return cached; - } - else - { - OSVERSIONINFOW osvi; - ZeroMemory(&osvi, sizeof(OSVERSIONINFOW)); - GetVersionExW(&osvi); - cached = QString("Windows %1.%2").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion); - return cached; - } + Sys::KernelInfo out; + out.kernelName = "Windows"; + OSVERSIONINFOW osvi; + ZeroMemory(&osvi, sizeof(OSVERSIONINFOW)); + GetVersionExW(&osvi); + out.kernelVersion = QString("%1.%2").arg(osvi.dwMajorVersion).arg(osvi.dwMinorVersion); + return out; } uint64_t Sys::getSystemRam() |