1 #ifndef __MSWINVER_H_
2 #define __MSWINVER_H_
3 
4 #include "winbase.h"
5 
6 #define MS_MAJOR_WINDOWS_3	3
7 #define MS_MAJOR_WINDOWS_95	4
8 #define MS_MAJOR_WINDOWS_98	4
9 #define MS_MAJOR_WINDOWS_ME	4
10 #define MS_MAJOR_WINDOWS_NT4	4
11 #define MS_MAJOR_WINDOWS_2K	5
12 #define MS_MAJOR_WINDOWS_XP	5
13 #define MS_MAJOR_WINDOWS_S2003	5
14 
15 
16 #define MS_MINOR_WINDOWS_3	51
17 #define MS_MINOR_WINDOWS_95	0
18 #define MS_MINOR_WINDOWS_98	10
19 #define MS_MINOR_WINDOWS_ME	90
20 #define MS_MINOR_WINDOWS_NT4	0
21 #define MS_MINOR_WINDOWS_2K	0
22 #define MS_MINOR_WINDOWS_XP	1
23 #define MS_MINOR_WINDOWS_S2003	2
24 
25 
26 #define _mkversion(p, m, r) (((p)<<24)|((m)<<8)|(r))
27 
28 #define MS_WINDOWS_95  _mkversion(VER_PLATFORM_WIN32_WINDOWS, MS_MAJOR_WINDOWS_95, MS_MINOR_WINDOWS_95)
29 #define MS_WINDOWS_98  _mkversion(VER_PLATFORM_WIN32_WINDOWS, MS_MAJOR_WINDOWS_98, MS_MINOR_WINDOWS_98)
30 #define MS_WINDOWS_ME  _mkversion(VER_PLATFORM_WIN32_WINDOWS, MS_MAJOR_WINDOWS_ME, MS_MINOR_WINDOWS_ME)
31 #define MS_WINDOWS_NT4  _mkversion(VER_PLATFORM_WIN32_NT, MS_MAJOR_WINDOWS_NT4, MS_MINOR_WINDOWS_NT4)
32 #define MS_WINDOWS_2K  _mkversion(VER_PLATFORM_WIN32_NT, MS_MAJOR_WINDOWS_2K, MS_MINOR_WINDOWS_2K)
33 #define MS_WINDOWS_XP  _mkversion(VER_PLATFORM_WIN32_NT, MS_MAJOR_WINDOWS_XP, MS_MINOR_WINDOWS_XP)
34 #define MS_WINDOWS_S2003  _mkversion(VER_PLATFORM_WIN32_NT, MS_MAJOR_WINDOWS_S2003, MS_MINOR_WINDOWS_S2003)
35 
36 
37 #endif
38