VirtualBox

Changeset 41216 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
May 8, 2012 6:05:41 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77855
Message:

Frontends: back out the Framebuffer cleanup, to be retried later

File:
1 edited

Legend:

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

    r41201 r41216  
    506506                         kTypeLibraryMajorVersion, kTypeLibraryMinorVersion>
    507507
     508#define VBOX_SCRIPTABLE_DISPATCH_IMPL(iface)                                 \
     509    STDMETHOD(QueryInterface)(REFIID riid , void **ppObj)                    \
     510    {                                                                        \
     511        if (riid == IID_##iface)                                             \
     512        {                                                                    \
     513            *ppObj = (iface*)this;                                           \
     514            AddRef();                                                        \
     515            return S_OK;                                                     \
     516        }                                                                    \
     517        if (riid == IID_IUnknown)                                            \
     518        {                                                                    \
     519            *ppObj = (IUnknown*)this;                                        \
     520            AddRef();                                                        \
     521            return S_OK;                                                     \
     522        }                                                                    \
     523        if (riid == IID_IDispatch)                                           \
     524        {                                                                    \
     525            *ppObj = (IDispatch*)this;                                       \
     526            AddRef();                                                        \
     527            return S_OK;                                                     \
     528        }                                                                    \
     529        *ppObj = NULL;                                                       \
     530        return E_NOINTERFACE;                                                \
     531    }
     532
     533
    508534#define VBOX_DEFAULT_INTERFACE_ENTRIES(iface)                                \
    509535        COM_INTERFACE_ENTRY(ISupportErrorInfo)                               \
     
    514540#define VBOX_SCRIPTABLE_IMPL(iface)                     \
    515541    public iface
     542#define VBOX_SCRIPTABLE_DISPATCH_IMPL(iface)
    516543#define VBOX_DEFAULT_INTERFACE_ENTRIES(iface)
    517544#endif
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