VirtualBox

source: vbox/trunk/src/VBox/Runtime/r3/win/internal-r3-win.h@ 47596

Last change on this file since 47596 was 47596, checked in by vboxsync, 11 years ago

IPRT: Determin windows version on init and skip the SetDefaultDllDirectories on 32-bit vista. Also corrected RTSystemQueryOSInfo status reporting.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
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 */
19typedef 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_NT_UNKNOWN = 199,
44 kRTWinOSType_NT_LAST = kRTWinOSType_UNKNOWN
45} RTWINOSTYPE;
46
47/**
48 * Windows loader protection level.
49 */
50typedef enum RTR3WINLDRPROT
51{
52 RTR3WINLDRPROT_INVALID = 0,
53 RTR3WINLDRPROT_NONE,
54 RTR3WINLDRPROT_NO_CWD,
55 RTR3WINLDRPROT_SAFE
56} RTR3WINLDRPROT;
57
58
59/*******************************************************************************
60* Global Variables *
61*******************************************************************************/
62extern DECLHIDDEN(RTR3WINLDRPROT) g_enmWinLdrProt;
63extern DECLHIDDEN(RTWINOSTYPE) g_enmWinVer;
64#ifdef _WINDEF_
65extern DECLHIDDEN(HMODULE) g_hModKernel32;
66extern DECLHIDDEN(HMODULE) g_hModNtDll;
67extern DECLHIDDEN(OSVERSIONINFOEX) g_WinOsInfoEx;
68#endif
69
70
71#endif
72
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette