1 | /* $Id: internal-r3-win.h 62477 2016-07-22 18:27:37Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IPRT - some Windows OS type constants.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2013-2016 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 | #ifndef ___internal_r3_win_h
|
---|
29 | #define ___internal_r3_win_h
|
---|
30 |
|
---|
31 | #include "internal/iprt.h"
|
---|
32 | #include <iprt/types.h>
|
---|
33 |
|
---|
34 |
|
---|
35 | /*******************************************************************************
|
---|
36 | * Structures and Typedefs *
|
---|
37 | *******************************************************************************/
|
---|
38 | /**
|
---|
39 | * Windows OS type as determined by rtSystemWinOSType().
|
---|
40 | *
|
---|
41 | * @note ASSUMPTIONS are made regarding ordering. Win 9x should come first, then
|
---|
42 | * NT. The Win9x and NT versions should internally be ordered in ascending
|
---|
43 | * version/code-base order.
|
---|
44 | */
|
---|
45 | typedef enum RTWINOSTYPE
|
---|
46 | {
|
---|
47 | kRTWinOSType_UNKNOWN = 0,
|
---|
48 | kRTWinOSType_9XFIRST = 1,
|
---|
49 | kRTWinOSType_95 = kRTWinOSType_9XFIRST,
|
---|
50 | kRTWinOSType_95SP1,
|
---|
51 | kRTWinOSType_95OSR2,
|
---|
52 | kRTWinOSType_98,
|
---|
53 | kRTWinOSType_98SP1,
|
---|
54 | kRTWinOSType_98SE,
|
---|
55 | kRTWinOSType_ME,
|
---|
56 | kRTWinOSType_9XLAST = 99,
|
---|
57 | kRTWinOSType_NTFIRST = 100,
|
---|
58 | kRTWinOSType_NT31 = kRTWinOSType_NTFIRST,
|
---|
59 | kRTWinOSType_NT351,
|
---|
60 | kRTWinOSType_NT4,
|
---|
61 | kRTWinOSType_2K, /* 5.0 */
|
---|
62 | kRTWinOSType_XP, /* 5.1 */
|
---|
63 | kRTWinOSType_XP64, /* 5.2, workstation */
|
---|
64 | kRTWinOSType_2003, /* 5.2 */
|
---|
65 | kRTWinOSType_VISTA, /* 6.0, workstation */
|
---|
66 | kRTWinOSType_2008, /* 6.0, server */
|
---|
67 | kRTWinOSType_7, /* 6.1, workstation */
|
---|
68 | kRTWinOSType_2008R2, /* 6.1, server */
|
---|
69 | kRTWinOSType_8, /* 6.2, workstation */
|
---|
70 | kRTWinOSType_2012, /* 6.2, server */
|
---|
71 | kRTWinOSType_81, /* 6.3, workstation */
|
---|
72 | kRTWinOSType_2012R2, /* 6.3, server */
|
---|
73 | kRTWinOSType_10, /* 10.0, workstation */
|
---|
74 | kRTWinOSType_2016, /* 10.0, server */
|
---|
75 | kRTWinOSType_NT_UNKNOWN = 199,
|
---|
76 | kRTWinOSType_NT_LAST = kRTWinOSType_UNKNOWN
|
---|
77 | } RTWINOSTYPE;
|
---|
78 |
|
---|
79 | /**
|
---|
80 | * Windows loader protection level.
|
---|
81 | */
|
---|
82 | typedef enum RTR3WINLDRPROT
|
---|
83 | {
|
---|
84 | RTR3WINLDRPROT_INVALID = 0,
|
---|
85 | RTR3WINLDRPROT_NONE,
|
---|
86 | RTR3WINLDRPROT_NO_CWD,
|
---|
87 | RTR3WINLDRPROT_SAFE,
|
---|
88 | RTR3WINLDRPROT_SAFER
|
---|
89 | } RTR3WINLDRPROT;
|
---|
90 |
|
---|
91 |
|
---|
92 | /*******************************************************************************
|
---|
93 | * Global Variables *
|
---|
94 | *******************************************************************************/
|
---|
95 | extern DECLHIDDEN(RTR3WINLDRPROT) g_enmWinLdrProt;
|
---|
96 | extern DECLHIDDEN(RTWINOSTYPE) g_enmWinVer;
|
---|
97 | #ifdef _WINDEF_
|
---|
98 | extern DECLHIDDEN(HMODULE) g_hModKernel32;
|
---|
99 | extern DECLHIDDEN(HMODULE) g_hModNtDll;
|
---|
100 | extern DECLHIDDEN(OSVERSIONINFOEXW) g_WinOsInfoEx;
|
---|
101 | typedef UINT (WINAPI *PFNGETWINSYSDIR)(LPWSTR,UINT);
|
---|
102 | extern DECLHIDDEN(PFNGETWINSYSDIR) g_pfnGetSystemWindowsDirectoryW;
|
---|
103 | #endif
|
---|
104 |
|
---|
105 |
|
---|
106 | #endif
|
---|
107 |
|
---|