| Index: src/shared/Utils.cpp |
| =================================================================== |
| --- a/src/shared/Utils.cpp |
| +++ b/src/shared/Utils.cpp |
| @@ -25,6 +25,15 @@ |
| return osvi.dwMajorVersion >= 6; |
| } |
| +bool IsWindows8() |
|
Felix Dahlke
2013/12/10 16:46:36
Shouldn't this be "isWindows8OrLater"?
|
| +{ |
| + OSVERSIONINFOEX osvi; |
| + ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); |
| + osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); |
| + GetVersionEx(reinterpret_cast<LPOSVERSIONINFO>(&osvi)); |
| + return osvi.dwMajorVersion == 6 & osvi.dwMinorVersion >= 2; |
| +} |
| + |
| std::string ToUtf8String(const std::wstring& str) |
| { |
| int length = static_cast<int>(str.size()); |