Changeset 69775 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Nov 20, 2017 4:36:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r69771 r69775 186 186 187 187 #ifdef VBOX_WITH_SDS_PLAN_B 188 class VBoxSVC ;188 class VBoxSVCRegistration; 189 189 190 190 /** … … 203 203 /** The IUnknown of the VirtualBox object/interface we're working with. */ 204 204 IUnknown *m_pObj; 205 /** Pointer to the IVBoxSVC implementation that VBoxSDS works with. */206 VBoxSVC 205 /** Pointer to the IVBoxSVCRegistration implementation that VBoxSDS works with. */ 206 VBoxSVCRegistration *m_pVBoxSVC; 207 207 /** The VBoxSDS interface. */ 208 208 ComPtr<IVirtualBoxSDS> m_ptrVirtualBoxSDS; … … 227 227 STDMETHOD(CreateInstance)(LPUNKNOWN pUnkOuter, REFIID riid, void **ppvObj); 228 228 229 /** Worker for VBoxSVC ::getVirtualBox. */229 /** Worker for VBoxSVCRegistration::getVirtualBox. */ 230 230 HRESULT i_getVirtualBox(IUnknown **ppResult); 231 231 … … 234 234 void VirtualBoxClassFactory::i_deregisterWithSds(void); 235 235 236 friend VBoxSVC ;236 friend VBoxSVCRegistration; 237 237 }; 238 238 … … 242 242 * VirtualBox object when the next VBoxSVC for this user registers itself. 243 243 */ 244 class VBoxSVC : public IVBoxSVC244 class VBoxSVCRegistration : public IVBoxSVCRegistration 245 245 { 246 246 private: … … 253 253 254 254 public: 255 VBoxSVC (VirtualBoxClassFactory *pFactory)255 VBoxSVCRegistration(VirtualBoxClassFactory *pFactory) 256 256 : m_cRefs(1), m_pFactory(pFactory) 257 257 { } 258 virtual ~VBoxSVC ()258 virtual ~VBoxSVCRegistration() 259 259 { 260 260 if (m_pFactory) … … 272 272 if (riid == __uuidof(IUnknown)) 273 273 *ppvObject = (void *)(IUnknown *)this; 274 else if (riid == __uuidof(IVBoxSVC ))275 *ppvObject = (void *)(IVBoxSVC *)this;274 else if (riid == __uuidof(IVBoxSVCRegistration)) 275 *ppvObject = (void *)(IVBoxSVCRegistration *)this; 276 276 else 277 277 { … … 297 297 } 298 298 299 // IVBoxSVC 299 // IVBoxSVCRegistration 300 300 STDMETHOD(GetVirtualBox)(IUnknown **ppResult) 301 301 { … … 317 317 { 318 318 /* 319 * Create VBoxSVC object and hand that to VBoxSDS.319 * Create VBoxSVCRegistration object and hand that to VBoxSDS. 320 320 */ 321 m_pVBoxSVC = new VBoxSVC (this);321 m_pVBoxSVC = new VBoxSVCRegistration(this); 322 322 hrc = m_ptrVirtualBoxSDS->RegisterVBoxSVC(m_pVBoxSVC, GetCurrentProcessId(), ppOtherVirtualBox); 323 323 if (SUCCEEDED(hrc))
Note:
See TracChangeset
for help on using the changeset viewer.