STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

system_version Class Reference
[System Library (WinSTL)]

Provides system version information. More...

#include <winstl_system_version.h>

List of all members.

Static Public Methods

ws_bool_t winnt ()
 Returns true if the operating system is one of the NT family (NT, 2000, XP, .NET).

ws_bool_t win9x ()
 Returns true if the operating system is one of the 95 family (95, 98, ME).

ws_bool_t win32s ()
 Returns true if the operating system is Win32s.

ws_uint_t major ()
 Returns the operating system major version.

ws_uint_t minor ()
 Returns the operating system minor version.

ws_uint32_t build_number ()
 Returns the operating system build number.

const OSVERSIONINFO & get_versioninfo ()
 Provides a non-mutable (const) reference to the OSVERSIONINFO instance.


Detailed Description

Provides system version information.

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.


Member Function Documentation

ws_uint32_t build_number   [inline, static]
 

Returns the operating system build number.

const OSVERSIONINFO& get_versioninfo   [inline, static]
 

Provides a non-mutable (const) reference to the OSVERSIONINFO instance.

ws_uint_t major   [inline, static]
 

Returns the operating system major version.

ws_uint_t minor   [inline, static]
 

Returns the operating system minor version.

ws_bool_t win32s   [inline, static]
 

Returns true if the operating system is Win32s.

ws_bool_t win9x   [inline, static]
 

Returns true if the operating system is one of the 95 family (95, 98, ME).

ws_bool_t winnt   [inline, static]
 

Returns true if the operating system is one of the NT family (NT, 2000, XP, .NET).


The documentation for this class was generated from the following file:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004