Changeset 60765 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/win
- Timestamp:
- Apr 29, 2016 2:26:58 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106960
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win/nobj
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/nobj/VBoxNetFltNobj.cpp
r56293 r60765 5 5 */ 6 6 /* 7 * Copyright (C) 2011-201 5Oracle Corporation7 * Copyright (C) 2011-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 542 542 543 543 544 CComModule _Module;544 static ATL::CComModule _Module; 545 545 546 546 BEGIN_OBJECT_MAP(ObjectMap) … … 575 575 STDAPI DllRegisterServer() 576 576 { 577 // this is a "just in case" conditional, which is not defined 578 #ifdef VBOX_FORCE_REGISTER_SERVER 577 579 return _Module.RegisterServer(TRUE); 580 #else 581 return S_OK; 582 #endif 578 583 } 579 584 580 585 STDAPI DllUnregisterServer() 581 586 { 587 // this is a "just in case" conditional, which is not defined 588 #ifdef VBOX_FORCE_REGISTER_SERVER 582 589 return _Module.UnregisterServer(TRUE); 583 } 590 #else 591 return S_OK; 592 #endif 593 } -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/nobj/VBoxNetFltNobj.h
r56293 r60765 5 5 */ 6 6 /* 7 * Copyright (C) 2011-201 5Oracle Corporation7 * Copyright (C) 2011-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 19 20 20 #include <windows.h> 21 /* atl stuff */22 #include <atlbase.h>23 extern CComModule _Module;24 #include <atlcom.h>25 21 22 #include "VBox/com/defs.h" 26 23 #include "VBoxNetFltNobjT.h" 27 24 #include "VBoxNetFltNobjRc.h" … … 34 31 */ 35 32 class ATL_NO_VTABLE VBoxNetFltNobj : 36 public CComObjectRootEx<CComObjectThreadModel>,37 public CComCoClass<VBoxNetFltNobj, &CLSID_VBoxNetFltNobj>,33 public ATL::CComObjectRootEx<ATL::CComMultiThreadModel>, 34 public ATL::CComCoClass<VBoxNetFltNobj, &CLSID_VBoxNetFltNobj>, 38 35 public INetCfgComponentControl, 39 36 public INetCfgComponentNotifyBinding … … 48 45 END_COM_MAP() 49 46 47 // this is a "just in case" conditional, which is not defined 48 #ifdef VBOX_FORCE_REGISTER_SERVER 50 49 DECLARE_REGISTRY_RESOURCEID(IDR_VBOXNETFLT_NOBJ) 50 #endif 51 51 52 52 /* INetCfgComponentControl methods */
Note:
See TracChangeset
for help on using the changeset viewer.