1 |
|
---|
2 | #ifndef ___internal_r3_win_h
|
---|
3 | #define ___internal_r3_win_h
|
---|
4 |
|
---|
5 | #include "internal/iprt.h"
|
---|
6 | #include <iprt/types.h>
|
---|
7 |
|
---|
8 |
|
---|
9 | /*******************************************************************************
|
---|
10 | * Structures and Typedefs *
|
---|
11 | *******************************************************************************/
|
---|
12 | /**
|
---|
13 | * Windows OS type as determined by rtSystemWinOSType().
|
---|
14 | *
|
---|
15 | * @note ASSUMPTIONS are made regarding ordering. Win 9x should come first, then
|
---|
16 | * NT. The Win9x and NT versions should internally be ordered in ascending
|
---|
17 | * version/code-base order.
|
---|
18 | */
|
---|
19 | typedef enum RTWINOSTYPE
|
---|
20 | {
|
---|
21 | kRTWinOSType_UNKNOWN = 0,
|
---|
22 | kRTWinOSType_9XFIRST = 1,
|
---|
23 | kRTWinOSType_95 = kRTWinOSType_9XFIRST,
|
---|
24 | kRTWinOSType_95SP1,
|
---|
25 | kRTWinOSType_95OSR2,
|
---|
26 | kRTWinOSType_98,
|
---|
27 | kRTWinOSType_98SP1,
|
---|
28 | kRTWinOSType_98SE,
|
---|
29 | kRTWinOSType_ME,
|
---|
30 | kRTWinOSType_9XLAST = 99,
|
---|
31 | kRTWinOSType_NTFIRST = 100,
|
---|
32 | kRTWinOSType_NT31 = kRTWinOSType_NTFIRST,
|
---|
33 | kRTWinOSType_NT351,
|
---|
34 | kRTWinOSType_NT4,
|
---|
35 | kRTWinOSType_2K,
|
---|
36 | kRTWinOSType_XP,
|
---|
37 | kRTWinOSType_2003,
|
---|
38 | kRTWinOSType_VISTA,
|
---|
39 | kRTWinOSType_2008,
|
---|
40 | kRTWinOSType_7,
|
---|
41 | kRTWinOSType_8,
|
---|
42 | kRTWinOSType_81,
|
---|
43 | kRTWinOSType_10,
|
---|
44 | kRTWinOSType_NT_UNKNOWN = 199,
|
---|
45 | kRTWinOSType_NT_LAST = kRTWinOSType_UNKNOWN
|
---|
46 | } RTWINOSTYPE;
|
---|
47 |
|
---|
48 | /**
|
---|
49 | * Windows loader protection level.
|
---|
50 | */
|
---|
51 | typedef enum RTR3WINLDRPROT
|
---|
52 | {
|
---|
53 | RTR3WINLDRPROT_INVALID = 0,
|
---|
54 | RTR3WINLDRPROT_NONE,
|
---|
55 | RTR3WINLDRPROT_NO_CWD,
|
---|
56 | RTR3WINLDRPROT_SAFE
|
---|
57 | } RTR3WINLDRPROT;
|
---|
58 |
|
---|
59 |
|
---|
60 | /*******************************************************************************
|
---|
61 | * Global Variables *
|
---|
62 | *******************************************************************************/
|
---|
63 | extern DECLHIDDEN(RTR3WINLDRPROT) g_enmWinLdrProt;
|
---|
64 | extern DECLHIDDEN(RTWINOSTYPE) g_enmWinVer;
|
---|
65 | #ifdef _WINDEF_
|
---|
66 | extern DECLHIDDEN(HMODULE) g_hModKernel32;
|
---|
67 | extern DECLHIDDEN(HMODULE) g_hModNtDll;
|
---|
68 | extern DECLHIDDEN(OSVERSIONINFOEXW) g_WinOsInfoEx;
|
---|
69 | #endif
|
---|
70 |
|
---|
71 |
|
---|
72 | #endif
|
---|
73 |
|
---|