Pyrogenesis  trunk
wversion.h
Go to the documentation of this file.
1 /* Copyright (c) 2014 Wildfire Games
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining
4  * a copy of this software and associated documentation files (the
5  * "Software"), to deal in the Software without restriction, including
6  * without limitation the rights to use, copy, modify, merge, publish,
7  * distribute, sublicense, and/or sell copies of the Software, and to
8  * permit persons to whom the Software is furnished to do so, subject to
9  * the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef INCLUDED_WVERSION
24 #define INCLUDED_WVERSION
25 
26 /**
27  * @return CurrentVersion string from registry
28  **/
29 extern const wchar_t* wversion_String();
30 
31 // (same format as WINVER)
32 const size_t WVERSION_2K = 0x0500;
33 const size_t WVERSION_XP = 0x0501;
34 const size_t WVERSION_XP64 = 0x0502;
35 const size_t WVERSION_VISTA = 0x0600;
36 const size_t WVERSION_7 = 0x0601;
37 const size_t WVERSION_8 = 0x0602;
38 const size_t WVERSION_8_1 = 0x0603;
39 const size_t WVERSION_10 = 0x0604;
40 
41 /**
42  * @return one of the above WVERSION* values
43  **/
44 LIB_API size_t wversion_Number();
45 
46 /**
47  * @return short textual representation of the version
48  **/
49 extern const wchar_t* wversion_Family();
50 
51 #endif // #ifndef INCLUDED_WVERSION
LIB_API size_t wversion_Number()
Definition: wversion.cpp:69
const size_t WVERSION_XP
Definition: wversion.h:33
const size_t WVERSION_8_1
Definition: wversion.h:38
const size_t WVERSION_10
Definition: wversion.h:39
const size_t WVERSION_7
Definition: wversion.h:36
const wchar_t * wversion_String()
Definition: wversion.cpp:63
const wchar_t * wversion_Family()
Definition: wversion.cpp:36
const size_t WVERSION_XP64
Definition: wversion.h:34
const size_t WVERSION_8
Definition: wversion.h:37
const size_t WVERSION_2K
Definition: wversion.h:32
const size_t WVERSION_VISTA
Definition: wversion.h:35