Changeset 85124 in vbox for trunk/src/VBox/Runtime/r3/win/init-win.cpp
- Timestamp:
- Jul 8, 2020 9:13:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/init-win.cpp
r82968 r85124 59 59 *********************************************************************************************************************************/ 60 60 /** Windows DLL loader protection level. */ 61 DECL HIDDEN(RTR3WINLDRPROT) g_enmWinLdrProt = RTR3WINLDRPROT_NONE;61 DECL_HIDDEN_DATA(RTR3WINLDRPROT) g_enmWinLdrProt = RTR3WINLDRPROT_NONE; 62 62 /** Our simplified windows version. */ 63 DECL HIDDEN(RTWINOSTYPE) g_enmWinVer = kRTWinOSType_UNKNOWN;63 DECL_HIDDEN_DATA(RTWINOSTYPE) g_enmWinVer = kRTWinOSType_UNKNOWN; 64 64 /** Extended windows version information. */ 65 DECL HIDDEN(OSVERSIONINFOEXW) g_WinOsInfoEx;65 DECL_HIDDEN_DATA(OSVERSIONINFOEXW) g_WinOsInfoEx; 66 66 67 67 /** The native kernel32.dll handle. */ 68 DECL HIDDEN(HMODULE)g_hModKernel32 = NULL;68 DECL_HIDDEN_DATA(HMODULE) g_hModKernel32 = NULL; 69 69 /** GetSystemWindowsDirectoryW or GetWindowsDirectoryW (NT4). */ 70 DECL HIDDEN(PFNGETWINSYSDIR)g_pfnGetSystemWindowsDirectoryW = NULL;70 DECL_HIDDEN_DATA(PFNGETWINSYSDIR) g_pfnGetSystemWindowsDirectoryW = NULL; 71 71 /** The GetCurrentThreadStackLimits API. */ 72 static PFNGETCURRENTTHREADSTACKLIMITS g_pfnGetCurrentThreadStackLimits = NULL;72 static PFNGETCURRENTTHREADSTACKLIMITS g_pfnGetCurrentThreadStackLimits = NULL; 73 73 /** SetUnhandledExceptionFilter. */ 74 static PFNSETUNHANDLEDEXCEPTIONFILTER g_pfnSetUnhandledExceptionFilter = NULL;74 static PFNSETUNHANDLEDEXCEPTIONFILTER g_pfnSetUnhandledExceptionFilter = NULL; 75 75 /** The previous unhandled exception filter. */ 76 static LPTOP_LEVEL_EXCEPTION_FILTER g_pfnUnhandledXcptFilter = NULL;76 static LPTOP_LEVEL_EXCEPTION_FILTER g_pfnUnhandledXcptFilter = NULL; 77 77 /** SystemTimeToTzSpecificLocalTime. */ 78 decltype(SystemTimeToTzSpecificLocalTime) *g_pfnSystemTimeToTzSpecificLocalTime = NULL;78 DECL_HIDDEN_DATA(decltype(SystemTimeToTzSpecificLocalTime) *) g_pfnSystemTimeToTzSpecificLocalTime = NULL; 79 79 80 80 /** The native ntdll.dll handle. */ 81 DECL HIDDEN(HMODULE)g_hModNtDll = NULL;81 DECL_HIDDEN_DATA(HMODULE) g_hModNtDll = NULL; 82 82 /** NtQueryFullAttributesFile */ 83 DECL HIDDEN(PFNNTQUERYFULLATTRIBUTESFILE)g_pfnNtQueryFullAttributesFile = NULL;83 DECL_HIDDEN_DATA(PFNNTQUERYFULLATTRIBUTESFILE) g_pfnNtQueryFullAttributesFile = NULL; 84 84 /** NtDuplicateToken (NT 3.51). */ 85 DECL HIDDEN(PFNNTDUPLICATETOKEN)g_pfnNtDuplicateToken = NULL;85 DECL_HIDDEN_DATA(PFNNTDUPLICATETOKEN) g_pfnNtDuplicateToken = NULL; 86 86 /** NtAlertThread (NT 3.51). */ 87 decltype(NtAlertThread) *g_pfnNtAlertThread = NULL;87 DECL_HIDDEN_DATA(decltype(NtAlertThread) *) g_pfnNtAlertThread = NULL; 88 88 89 89 /** Either ws2_32.dll (NT4+) or wsock32.dll (NT3.x). */ 90 DECL HIDDEN(HMODULE)g_hModWinSock = NULL;90 DECL_HIDDEN_DATA(HMODULE) g_hModWinSock = NULL; 91 91 /** Set if we're dealing with old winsock. */ 92 DECL HIDDEN(bool)g_fOldWinSock = false;92 DECL_HIDDEN_DATA(bool) g_fOldWinSock = false; 93 93 /** WSAStartup */ 94 DECL HIDDEN(PFNWSASTARTUP)g_pfnWSAStartup = NULL;94 DECL_HIDDEN_DATA(PFNWSASTARTUP) g_pfnWSAStartup = NULL; 95 95 /** WSACleanup */ 96 DECL HIDDEN(PFNWSACLEANUP)g_pfnWSACleanup = NULL;96 DECL_HIDDEN_DATA(PFNWSACLEANUP) g_pfnWSACleanup = NULL; 97 97 /** Pointner to WSAGetLastError (for RTErrVarsSave). */ 98 DECL HIDDEN(PFNWSAGETLASTERROR)g_pfnWSAGetLastError = NULL;98 DECL_HIDDEN_DATA(PFNWSAGETLASTERROR) g_pfnWSAGetLastError = NULL; 99 99 /** Pointner to WSASetLastError (for RTErrVarsRestore). */ 100 DECL HIDDEN(PFNWSASETLASTERROR)g_pfnWSASetLastError = NULL;100 DECL_HIDDEN_DATA(PFNWSASETLASTERROR) g_pfnWSASetLastError = NULL; 101 101 /** WSACreateEvent */ 102 DECL HIDDEN(PFNWSACREATEEVENT)g_pfnWSACreateEvent = NULL;102 DECL_HIDDEN_DATA(PFNWSACREATEEVENT) g_pfnWSACreateEvent = NULL; 103 103 /** WSACloseEvent */ 104 DECL HIDDEN(PFNWSACLOSEEVENT)g_pfnWSACloseEvent = NULL;104 DECL_HIDDEN_DATA(PFNWSACLOSEEVENT) g_pfnWSACloseEvent = NULL; 105 105 /** WSASetEvent */ 106 DECL HIDDEN(PFNWSASETEVENT)g_pfnWSASetEvent = NULL;106 DECL_HIDDEN_DATA(PFNWSASETEVENT) g_pfnWSASetEvent = NULL; 107 107 /** WSAEventSelect */ 108 DECL HIDDEN(PFNWSAEVENTSELECT)g_pfnWSAEventSelect = NULL;108 DECL_HIDDEN_DATA(PFNWSAEVENTSELECT) g_pfnWSAEventSelect = NULL; 109 109 /** WSAEnumNetworkEvents */ 110 DECL HIDDEN(PFNWSAENUMNETWORKEVENTS)g_pfnWSAEnumNetworkEvents = NULL;110 DECL_HIDDEN_DATA(PFNWSAENUMNETWORKEVENTS) g_pfnWSAEnumNetworkEvents = NULL; 111 111 /** WSASend */ 112 DECL HIDDEN(PFNWSASend)g_pfnWSASend = NULL;112 DECL_HIDDEN_DATA(PFNWSASend) g_pfnWSASend = NULL; 113 113 /** socket */ 114 DECL HIDDEN(PFNWINSOCKSOCKET)g_pfnsocket = NULL;114 DECL_HIDDEN_DATA(PFNWINSOCKSOCKET) g_pfnsocket = NULL; 115 115 /** closesocket */ 116 DECL HIDDEN(PFNWINSOCKCLOSESOCKET)g_pfnclosesocket = NULL;116 DECL_HIDDEN_DATA(PFNWINSOCKCLOSESOCKET) g_pfnclosesocket = NULL; 117 117 /** recv */ 118 DECL HIDDEN(PFNWINSOCKRECV)g_pfnrecv = NULL;118 DECL_HIDDEN_DATA(PFNWINSOCKRECV) g_pfnrecv = NULL; 119 119 /** send */ 120 DECL HIDDEN(PFNWINSOCKSEND)g_pfnsend = NULL;120 DECL_HIDDEN_DATA(PFNWINSOCKSEND) g_pfnsend = NULL; 121 121 /** recvfrom */ 122 DECL HIDDEN(PFNWINSOCKRECVFROM)g_pfnrecvfrom = NULL;122 DECL_HIDDEN_DATA(PFNWINSOCKRECVFROM) g_pfnrecvfrom = NULL; 123 123 /** sendto */ 124 DECL HIDDEN(PFNWINSOCKSENDTO)g_pfnsendto = NULL;124 DECL_HIDDEN_DATA(PFNWINSOCKSENDTO) g_pfnsendto = NULL; 125 125 /** bind */ 126 DECL HIDDEN(PFNWINSOCKBIND)g_pfnbind = NULL;126 DECL_HIDDEN_DATA(PFNWINSOCKBIND) g_pfnbind = NULL; 127 127 /** listen */ 128 DECL HIDDEN(PFNWINSOCKLISTEN)g_pfnlisten = NULL;128 DECL_HIDDEN_DATA(PFNWINSOCKLISTEN) g_pfnlisten = NULL; 129 129 /** accept */ 130 DECL HIDDEN(PFNWINSOCKACCEPT)g_pfnaccept = NULL;130 DECL_HIDDEN_DATA(PFNWINSOCKACCEPT) g_pfnaccept = NULL; 131 131 /** connect */ 132 DECL HIDDEN(PFNWINSOCKCONNECT)g_pfnconnect = NULL;132 DECL_HIDDEN_DATA(PFNWINSOCKCONNECT) g_pfnconnect = NULL; 133 133 /** shutdown */ 134 DECL HIDDEN(PFNWINSOCKSHUTDOWN)g_pfnshutdown = NULL;134 DECL_HIDDEN_DATA(PFNWINSOCKSHUTDOWN) g_pfnshutdown = NULL; 135 135 /** getsockopt */ 136 DECL HIDDEN(PFNWINSOCKGETSOCKOPT)g_pfngetsockopt = NULL;136 DECL_HIDDEN_DATA(PFNWINSOCKGETSOCKOPT) g_pfngetsockopt = NULL; 137 137 /** setsockopt */ 138 DECL HIDDEN(PFNWINSOCKSETSOCKOPT)g_pfnsetsockopt = NULL;138 DECL_HIDDEN_DATA(PFNWINSOCKSETSOCKOPT) g_pfnsetsockopt = NULL; 139 139 /** ioctlsocket */ 140 DECL HIDDEN(PFNWINSOCKIOCTLSOCKET)g_pfnioctlsocket = NULL;140 DECL_HIDDEN_DATA(PFNWINSOCKIOCTLSOCKET) g_pfnioctlsocket = NULL; 141 141 /** getpeername */ 142 DECL HIDDEN(PFNWINSOCKGETPEERNAME)g_pfngetpeername = NULL;142 DECL_HIDDEN_DATA(PFNWINSOCKGETPEERNAME) g_pfngetpeername = NULL; 143 143 /** getsockname */ 144 DECL HIDDEN(PFNWINSOCKGETSOCKNAME)g_pfngetsockname = NULL;144 DECL_HIDDEN_DATA(PFNWINSOCKGETSOCKNAME) g_pfngetsockname = NULL; 145 145 /** __WSAFDIsSet */ 146 DECL HIDDEN(PFNWINSOCK__WSAFDISSET)g_pfn__WSAFDIsSet = NULL;146 DECL_HIDDEN_DATA(PFNWINSOCK__WSAFDISSET) g_pfn__WSAFDIsSet = NULL; 147 147 /** select */ 148 DECL HIDDEN(PFNWINSOCKSELECT)g_pfnselect = NULL;148 DECL_HIDDEN_DATA(PFNWINSOCKSELECT) g_pfnselect = NULL; 149 149 /** gethostbyname */ 150 DECL HIDDEN(PFNWINSOCKGETHOSTBYNAME)g_pfngethostbyname = NULL;150 DECL_HIDDEN_DATA(PFNWINSOCKGETHOSTBYNAME) g_pfngethostbyname = NULL; 151 151 152 152
Note:
See TracChangeset
for help on using the changeset viewer.