Changeset 66279 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Mar 28, 2017 7:23:33 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114203
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/VirtualBoxClientImpl.cpp
r66274 r66279 70 70 71 71 HRESULT rc = CoCreateInstance(CLSID_VirtualBoxSDS, /* the VirtualBoxSDS object */ 72 NULL,/* no aggregation */73 CLSCTX_LOCAL_SERVER,/* the object lives in the current process */74 IID_IVirtualBoxSDS, /* IID of the interface */75 (void **)aVirtualBoxSDS.asOutParam());72 NULL, /* no aggregation */ 73 CLSCTX_LOCAL_SERVER, /* the object lives in the current process */ 74 IID_IVirtualBoxSDS, /* IID of the interface */ 75 (void **)aVirtualBoxSDS.asOutParam()); 76 76 if (FAILED(rc)) 77 77 { … … 97 97 98 98 HRESULT rc = CoCreateInstance(CLSID_VirtualBoxSDS, /* the VirtualBoxSDS object */ 99 NULL,/* no aggregation */100 CLSCTX_LOCAL_SERVER,/* the object lives in the current process */101 IID_IVirtualBoxSDS, /* IID of the interface */102 (void **)aVirtualBoxSDS.asOutParam());99 NULL, /* no aggregation */ 100 CLSCTX_LOCAL_SERVER, /* the object lives in the current process */ 101 IID_IVirtualBoxSDS, /* IID of the interface */ 102 (void **)aVirtualBoxSDS.asOutParam()); 103 103 if (FAILED(rc)) 104 104 { … … 132 132 // TODO: AM rework for final version 133 133 // setup COM Security to enable impersonation 134 // This works for console Virtual Box clients, GUI has own security settings 134 // This works for console Virtual Box clients, GUI has own security settings 135 135 // For GUI Virtual Box it will be second call so can return TOO_LATE error 136 136 HRESULT hrGUICoInitializeSecurity = CoInitializeSecurity(NULL, 137 -1,138 NULL,139 NULL,140 RPC_C_AUTHN_LEVEL_DEFAULT,141 RPC_C_IMP_LEVEL_IMPERSONATE, //RPC_C_IMP_LEVEL_DELEGATE,//RPC_C_IMP_LEVEL_IMPERSONATE,142 NULL,143 EOAC_NONE,//EOAC_NONE,//EOAC_DYNAMIC_CLOAKING,//EOAC_STATIC_CLOAKING,144 NULL);137 -1, 138 NULL, 139 NULL, 140 RPC_C_AUTHN_LEVEL_DEFAULT, 141 RPC_C_IMP_LEVEL_IMPERSONATE, 142 NULL, 143 EOAC_NONE, 144 NULL); 145 145 //Assert(RPC_E_TOO_LATE != hrGUICoInitializeSecurity); 146 146 Assert(SUCCEEDED(hrGUICoInitializeSecurity) || hrGUICoInitializeSecurity == RPC_E_TOO_LATE); … … 170 170 mData.m_ThreadWatcher = NIL_RTTHREAD; 171 171 mData.m_SemEvWatcher = NIL_RTSEMEVENT; 172 172 173 173 #ifdef VBOX_WITH_SDS 174 // TODO: AM create virtual box through SDS 174 // TODO: AM create virtual box through SDS 175 175 rc = CreateVirtualBoxThroughSDS(mData.m_pVirtualBox); 176 176 #else
Note:
See TracChangeset
for help on using the changeset viewer.