VirtualBox

Changeset 21521 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 13, 2009 8:26:40 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49974
Message:

fixed burn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/defs.h

    r19134 r21521  
    580580    public IDispatchImpl<iface, &IID_##iface, &LIBID_VirtualBox,             \
    581581                         kTypeLibraryMajorVersion, kTypeLibraryMinorVersion>
     582
     583#define VBOX_SCRIPTABLE_DISPATCH_IMPL(iface)                                 \
     584    STDMETHOD(QueryInterface)(REFIID riid , void **ppObj)                    \
     585    {                                                                        \
     586        if (riid == IID_IUnknown)                                            \
     587        {                                                                    \
     588            *ppObj = (IUnknown*)this;                                        \
     589            AddRef();                                                        \
     590            return S_OK;                                                     \
     591        }                                                                    \
     592        if (riid == IID_IDispatch)                                           \
     593        {                                                                    \
     594            *ppObj = (IDispatch*)this;                                       \
     595            AddRef();                                                        \
     596            return S_OK;                                                     \
     597        }                                                                    \
     598        if (riid == IID_##iface)                                             \
     599        {                                                                    \
     600            *ppObj = (iface*)this;                                           \
     601            AddRef();                                                        \
     602            return S_OK;                                                     \
     603        }                                                                    \
     604        *ppObj = NULL;                                                       \
     605        return E_NOINTERFACE;                                                \
     606    }
    582607#else
    583 #define VBOX_SCRIPTABLE_IMPL(iface) \
     608#define VBOX_SCRIPTABLE_IMPL(iface)                     \
    584609    public iface
     610#define VBOX_SCRIPTABLE_DISPATCH_IMPL(iface)               
    585611#endif
    586612
Note: See TracChangeset for help on using the changeset viewer.

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