VirtualBox

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

最後變更 在這個檔案從51851是 50976,由 vboxsync 提交於 11 年 前

RTSystemQueryOSInfo-win.cpp,init-win.cpp: Detect windows 8.1 correctly, it will try hide from us if we use GetVersionEx and the like. Fixed bug in service pack query where it would return ANSI strings instead of UTF-8 strings.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.0 KB
 
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(OSVERSIONINFOEXW) g_WinOsInfoEx;
68#endif
69
70
71#endif
72
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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