VirtualBox

Ignore:
Timestamp:
Apr 29, 2016 2:26:58 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106960
Message:

API: stop using ATL and use a vastly smaller lookalike instead, plus a lot of cleanups

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  
    55 */
    66/*
    7  * Copyright (C) 2011-2015 Oracle Corporation
     7 * Copyright (C) 2011-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    542542
    543543
    544 CComModule _Module;
     544static ATL::CComModule _Module;
    545545
    546546BEGIN_OBJECT_MAP(ObjectMap)
     
    575575STDAPI DllRegisterServer()
    576576{
     577// this is a "just in case" conditional, which is not defined
     578#ifdef VBOX_FORCE_REGISTER_SERVER
    577579    return _Module.RegisterServer(TRUE);
     580#else
     581    return S_OK;
     582#endif
    578583}
    579584
    580585STDAPI DllUnregisterServer()
    581586{
     587// this is a "just in case" conditional, which is not defined
     588#ifdef VBOX_FORCE_REGISTER_SERVER
    582589    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  
    55 */
    66/*
    7  * Copyright (C) 2011-2015 Oracle Corporation
     7 * Copyright (C) 2011-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1919
    2020#include <windows.h>
    21 /* atl stuff */
    22 #include <atlbase.h>
    23 extern CComModule _Module;
    24 #include <atlcom.h>
    2521
     22#include "VBox/com/defs.h"
    2623#include "VBoxNetFltNobjT.h"
    2724#include "VBoxNetFltNobjRc.h"
     
    3431 */
    3532class 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>,
    3835    public INetCfgComponentControl,
    3936    public INetCfgComponentNotifyBinding
     
    4845    END_COM_MAP()
    4946
     47    // this is a "just in case" conditional, which is not defined
     48#ifdef VBOX_FORCE_REGISTER_SERVER
    5049    DECLARE_REGISTRY_RESOURCEID(IDR_VBOXNETFLT_NOBJ)
     50#endif
    5151
    5252    /* INetCfgComponentControl methods */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette