1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2006 - INRIA - Allan CORNET
4  * Copyright (C) 2011 - DIGITEO - Allan CORNET
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  */
16 
17 #ifndef __GETWINDOWSVERSION_H__
18 #define __GETWINDOWSVERSION_H__
19 /*-----------------------------------------------------------------------------------*/
20 #ifdef EXPORT_GETWINDOWSVERSION_DLL
21 #define IMPORT_EXPORT_GETWINDOWSVERSION_DLL __declspec(dllexport)
22 #else
23 #define IMPORT_EXPORT_GETWINDOWSVERSION_DLL __declspec(dllimport)
24 #endif
25 
26 #define OS_ERROR							-1
27 #define OS_WIN32_WINDOWS_NT_3_51			0
28 #define OS_WIN32_WINDOWS_NT_4_0				1
29 #define OS_WIN32_WINDOWS_95					2
30 #define OS_WIN32_WINDOWS_98					3
31 #define OS_WIN32_WINDOWS_Me					4
32 #define OS_WIN32_WINDOWS_2000				5
33 #define OS_WIN32_WINDOWS_XP					6
34 #define OS_WIN32_WINDOWS_XP_64				7
35 #define OS_WIN32_WINDOWS_SERVER_2003		8
36 #define OS_WIN32_WINDOWS_SERVER_2003_R2		9
37 #define OS_WIN32_WINDOWS_SERVER_2003_64		10
38 #define OS_WIN32_WINDOWS_VISTA				11
39 #define OS_WIN32_WINDOWS_VISTA_64			12
40 #define OS_WIN32_WINDOWS_SERVER_2008		13
41 #define OS_WIN32_WINDOWS_SERVER_2008_64		14
42 #define OS_WIN32_WINDOWS_SEVEN				15
43 #define OS_WIN32_WINDOWS_SEVEN_64			16
44 #define OS_WIN32_WINDOWS_SEVEN_SERVER		17
45 #define OS_WIN32_WINDOWS_SEVEN_SERVER_64	18
46 #define OS_WIN32_WINDOWS_EIGHT				19
47 #define OS_WIN32_WINDOWS_EIGHT_64			20
48 #define OS_WIN32_WINDOWS_EIGHT_SERVER		21
49 #define OS_WIN32_WINDOWS_EIGHT_SERVER_64	22
50 /*-----------------------------------------------------------------------------------*/
51 IMPORT_EXPORT_GETWINDOWSVERSION_DLL int GetWindowsVersion(void);
52 IMPORT_EXPORT_GETWINDOWSVERSION_DLL BOOL IsWow64(void);
53 /*-----------------------------------------------------------------------------------*/
54 #endif /* __GETWINDOWSVERSION_H__ */
55