#if !defined(__CLIENT_H__1F6FA635_EE75_40a1_B9B2_3938834F5AC5) #define __CLIENT_H__1F6FA635_EE75_40a1_B9B2_3938834F5AC5 #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "utils.h" struct COSVersion { private: COSVersion() { ZeroMemory(&m_osversion,sizeof(m_osversion)); m_osversion.dwOSVersionInfoSize = sizeof(m_osversion); ::GetVersionEx(&m_osversion); } public: bool IsWin95() const { return EQL(VER_PLATFORM_WIN32_WINDOWS,m_osversion.dwPlatformId) && EQL(4,m_osversion.dwMajorVersion) && EQL(0,m_osversion.dwMinorVersion) ; } bool IsWin32NT() const { return EQL(VER_PLATFORM_WIN32_NT,m_osversion.dwPlatformId); } static COSVersion& get() { static COSVersion _; return _; } protected: OSVERSIONINFO m_osversion;//XXX: MSVC 5.0 don`t know about OSVERSIONINFOEX };//struct CSystemInfo #endif //#if !defined(__CLIENT_H__1F6FA635_EE75_40a1_B9B2_3938834F5AC5)
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Mozilla Public License 1.1 (MPL 1.1)