Changeset 85489 in vbox
- Timestamp:
- Jul 28, 2020 2:51:29 PM (5 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r84964 r85489 4091 4091 } 4092 4092 4093 #ifdef VBOX_WITH_SDS4094 // setup Client COM Security to enable impersonation required by VBOX_SDS4095 HRESULT hrGUICoInitializeSecurity = CoInitializeSecurity(NULL,4096 -1,4097 NULL,4098 NULL,4099 RPC_C_AUTHN_LEVEL_DEFAULT,4100 RPC_C_IMP_LEVEL_IMPERSONATE,4101 NULL,4102 EOAC_NONE,4103 NULL);4104 NOREF(hrGUICoInitializeSecurity);4105 Assert(RPC_E_TOO_LATE != hrGUICoInitializeSecurity);4106 Assert(hrGUICoInitializeSecurity == S_OK);4107 #endif4108 4109 4093 /* Make sure VirtualBoxClient instance created: */ 4110 4094 m_comVBoxClient.createInstance(CLSID_VirtualBoxClient); -
trunk/src/VBox/Main/Makefile.kmk
r85365 r85489 1233 1233 VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE 1234 1234 endif 1235 ifdef VBOX_WITH_SDS 1236 VBoxCOM_DEFS.win += VBOX_WITH_SDS 1237 endif 1235 1238 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500 1236 1239 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510 -
trunk/src/VBox/Main/glue/initterm.cpp
r85121 r85489 457 457 AssertMsg(rc == S_OK || rc == S_FALSE, ("rc=%08X\n", rc)); 458 458 459 #if defined(VBOX_WITH_SDS) 460 // Setup COM Security to enable impersonation 461 HRESULT hrGUICoInitializeSecurity = CoInitializeSecurity(NULL, 462 -1, 463 NULL, 464 NULL, 465 RPC_C_AUTHN_LEVEL_DEFAULT, 466 RPC_C_IMP_LEVEL_IMPERSONATE, 467 NULL, 468 EOAC_NONE, 469 NULL); 470 NOREF(hrGUICoInitializeSecurity); 471 Assert(SUCCEEDED(hrGUICoInitializeSecurity) || hrGUICoInitializeSecurity == RPC_E_TOO_LATE); 472 #endif 473 459 474 /* 460 475 * IRundown has unsafe two methods we need to patch to prevent remote access. -
trunk/src/VBox/Main/src-client/VirtualBoxClientImpl.cpp
r85300 r85489 75 75 HRESULT VirtualBoxClient::init() 76 76 { 77 78 #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_SDS)79 // setup COM Security to enable impersonation80 // This works for console VirtualBox clients, GUI has own security settings81 // For GUI VirtualBox it will be second call so can return TOO_LATE error82 HRESULT hrGUICoInitializeSecurity = CoInitializeSecurity(NULL,83 -1,84 NULL,85 NULL,86 RPC_C_AUTHN_LEVEL_DEFAULT,87 RPC_C_IMP_LEVEL_IMPERSONATE,88 NULL,89 EOAC_NONE,90 NULL);91 NOREF(hrGUICoInitializeSecurity);92 Assert(SUCCEEDED(hrGUICoInitializeSecurity) || hrGUICoInitializeSecurity == RPC_E_TOO_LATE);93 #endif94 95 77 LogFlowThisFuncEnter(); 96 78
Note:
See TracChangeset
for help on using the changeset viewer.