00001
00002
00003 #ifndef __GETWINDOWSVERSION_H__
00004 #define __GETWINDOWSVERSION_H__
00005 #include <windows.h>
00006
00007 #ifdef EXPORT_GETWINDOWSVERSION_DLL
00008 #define IMPORT_EXPORT_GETWINDOWSVERSION_DLL __declspec(dllexport)
00009 #else
00010 #define IMPORT_EXPORT_GETWINDOWSVERSION_DLL __declspec(dllimport)
00011 #endif
00012
00013 #define OS_ERROR -1
00014 #define OS_WIN32_WINDOWS_NT_3_51 0
00015 #define OS_WIN32_WINDOWS_NT_4_0 1
00016 #define OS_WIN32_WINDOWS_95 2
00017 #define OS_WIN32_WINDOWS_98 3
00018 #define OS_WIN32_WINDOWS_Me 4
00019 #define OS_WIN32_WINDOWS_2000 5
00020 #define OS_WIN32_WINDOWS_XP 6
00021 #define OS_WIN32_WINDOWS_XP_64 7
00022 #define OS_WIN32_WINDOWS_SERVER_2003 8
00023 #define OS_WIN32_WINDOWS_SERVER_2003_R2 9
00024 #define OS_WIN32_WINDOWS_SERVER_2003_64 10
00025 #define OS_WIN32_WINDOWS_VISTA 11
00026 #define OS_WIN32_WINDOWS_VISTA_64 12
00027 #define OS_WIN32_WINDOWS_LONGHORN 13
00028 #define OS_WIN32_WINDOWS_LONGHORN_64 14
00029
00030
00031 IMPORT_EXPORT_GETWINDOWSVERSION_DLL int GetWindowsVersion(void);
00032
00033 #endif