summaryrefslogtreecommitdiff
path: root/libs/GetWindowsVersion/GetWindowsVersion.h
blob: 0cb45bc640ac8cf5a7a3fda4bdd9af5a0eac9c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2006 - INRIA - Allan CORNET
 * Copyright (C) 2011 - DIGITEO - Allan CORNET
 *
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at
 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
 *
 */

#ifndef __GETWINDOWSVERSION_H__
#define __GETWINDOWSVERSION_H__
#include <windows.h>
/*-----------------------------------------------------------------------------------*/
#ifdef EXPORT_GETWINDOWSVERSION_DLL
#define IMPORT_EXPORT_GETWINDOWSVERSION_DLL __declspec(dllexport)
#else
#define IMPORT_EXPORT_GETWINDOWSVERSION_DLL __declspec(dllimport)
#endif

#define OS_ERROR							-1
#define OS_WIN32_WINDOWS_NT_3_51			0
#define OS_WIN32_WINDOWS_NT_4_0				1
#define OS_WIN32_WINDOWS_95					2
#define OS_WIN32_WINDOWS_98					3
#define OS_WIN32_WINDOWS_Me					4
#define OS_WIN32_WINDOWS_2000				5
#define OS_WIN32_WINDOWS_XP					6
#define OS_WIN32_WINDOWS_XP_64				7
#define OS_WIN32_WINDOWS_SERVER_2003		8
#define OS_WIN32_WINDOWS_SERVER_2003_R2		9
#define OS_WIN32_WINDOWS_SERVER_2003_64		10
#define OS_WIN32_WINDOWS_VISTA				11
#define OS_WIN32_WINDOWS_VISTA_64			12
#define OS_WIN32_WINDOWS_SERVER_2008		13
#define OS_WIN32_WINDOWS_SERVER_2008_64		14
#define OS_WIN32_WINDOWS_SEVEN				15
#define OS_WIN32_WINDOWS_SEVEN_64			16
#define OS_WIN32_WINDOWS_SEVEN_SERVER		17
#define OS_WIN32_WINDOWS_SEVEN_SERVER_64	18
#define OS_WIN32_WINDOWS_EIGHT				19
#define OS_WIN32_WINDOWS_EIGHT_64			20
#define OS_WIN32_WINDOWS_EIGHT_SERVER		21
#define OS_WIN32_WINDOWS_EIGHT_SERVER_64	22
/*-----------------------------------------------------------------------------------*/
IMPORT_EXPORT_GETWINDOWSVERSION_DLL int GetWindowsVersion(void);
IMPORT_EXPORT_GETWINDOWSVERSION_DLL BOOL IsWow64(void);
/*-----------------------------------------------------------------------------------*/
#endif /* __GETWINDOWSVERSION_H__ */