#include <winstl/system/system_version.hpp>
This class wraps the GetSystemInfo() API function. Since the information that this function provides is constant for any particular active system for its lifetime, the function is called only once, as implemented via the get_versioninfo_() method.
Public Types | |
typedef system_version | class_type |
This type. | |
Static Public Member Functions | |
static bool | winnt () |
Returns true if the operating system is one of the NT family (NT, 2000, XP, .NET). | |
static bool | win9x () |
Returns true if the operating system is one of the 95 family (95, 98, ME). | |
static bool | win32s () |
Returns true if the operating system is Win32s. | |
static ws_uint_t | major () |
Returns the operating system major version. | |
static ws_uint_t | minor () |
Returns the operating system minor version. | |
static ws_uint32_t | build_number () |
Returns the operating system build number. | |
static OSVERSIONINFO const & | get_versioninfo () |
Provides a non-mutable (const) reference to the OSVERSIONINFO instance. |
typedef system_version class_type |
This type.
bool winnt | ( | ) | [inline, static] |
Returns true
if the operating system is one of the NT family (NT, 2000, XP, .NET).
Referenced by system_version::build_number().
bool win9x | ( | ) | [inline, static] |
Returns true
if the operating system is one of the 95 family (95, 98, ME).
bool win32s | ( | ) | [inline, static] |
Returns true
if the operating system is Win32s.
ws_uint_t major | ( | ) | [inline, static] |
ws_uint_t minor | ( | ) | [inline, static] |
ws_uint32_t build_number | ( | ) | [inline, static] |
OSVERSIONINFO const & get_versioninfo | ( | ) | [inline, static] |
Provides a non-mutable (const) reference to the OSVERSIONINFO
instance.