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