Changeset 70214 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 19, 2017 3:24:44 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119798
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService-win.cpp
r70196 r70214 35 35 #include <aclapi.h> 36 36 #include <tlhelp32.h> 37 #define _NTDEF_ 38 #include <Ntsecapi.h> 37 39 38 40 #include "VBoxServiceInternal.h" … … 66 68 decltype(SetEntriesInAclA) *g_pfnSetEntriesInAclA; /**< NT4+ */ 67 69 decltype(SetNamedSecurityInfoA) *g_pfnSetNamedSecurityInfoA; /**< NT4+ */ 70 decltype(LsaNtStatusToWinError) *g_pfnLsaNtStatusToWinError; /**< NT3.51+ */ 68 71 /** @} */ 69 72 … … 119 122 RESOLVE_SYMBOL(SetEntriesInAclA); 120 123 RESOLVE_SYMBOL(SetNamedSecurityInfoA); 124 RESOLVE_SYMBOL(LsaNtStatusToWinError); 121 125 RTLdrClose(hLdrMod); 122 126 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h
r70196 r70214 223 223 # endif /* WINSOCK_VERSION */ 224 224 225 #ifdef SE_INTERACTIVE_LOGON_NAME 226 extern decltype(LsaNtStatusToWinError) *g_pfnLsaNtStatusToWinError; 227 #endif 228 225 229 # ifdef VBOX_WITH_GUEST_PROPS 226 230 extern int VGSvcVMInfoWinWriteUsers(PVBOXSERVICEVEPROPCACHE pCache, char **ppszUserList, uint32_t *pcUsersInList); -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r70196 r70214 749 749 if (!pSession) 750 750 return false; 751 if (!g_pfnLsaGetLogonSessionData) 751 if ( !g_pfnLsaGetLogonSessionData 752 || !g_pfnLsaNtStatusToWinError) 752 753 return false; 753 754 … … 756 757 if (rcNt != STATUS_SUCCESS) 757 758 { 758 ULONG ulError = LsaNtStatusToWinError(rcNt);759 ULONG ulError = g_pfnLsaNtStatusToWinError(rcNt); 759 760 switch (ulError) 760 761 { … … 1086 1087 if (RT_FAILURE(rc)) 1087 1088 return rc; 1088 if (!g_pfnLsaEnumerateLogonSessions || !g_pfnEnumProcesses )1089 if (!g_pfnLsaEnumerateLogonSessions || !g_pfnEnumProcesses || !g_pfnLsaNtStatusToWinError) 1089 1090 return VERR_NOT_SUPPORTED; 1090 1091 … … 1102 1103 if (rcNt != STATUS_SUCCESS) 1103 1104 { 1104 ULONG uError = LsaNtStatusToWinError(rcNt);1105 ULONG uError = g_pfnLsaNtStatusToWinError(rcNt); 1105 1106 switch (uError) 1106 1107 {
Note:
See TracChangeset
for help on using the changeset viewer.