VirtualBox

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

COM: missed pieces of scriptability support

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r21404 r21520  
    7575        return cnt;
    7676    }
    77     STDMETHOD(QueryInterface)(REFIID riid , void **ppObj)
    78     {
    79         if (riid == IID_IUnknown)
    80         {
    81             *ppObj = this;
    82             AddRef();
    83             return S_OK;
    84         }
    85         if (riid == IID_IVirtualBoxCallback)
    86         {
    87             *ppObj = this;
    88             AddRef();
    89             return S_OK;
    90         }
    91         *ppObj = NULL;
    92         return E_NOINTERFACE;
    93     }
    9477#endif /* !VBOX_WITH_XPCOM */
     78    VBOX_SCRIPTABLE_DISPATCH_IMPL(IVirtualBoxCallback)
    9579
    9680    NS_DECL_ISUPPORTS
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r20928 r21520  
    7979        if (guid == Guid(NS_GET_IID(IUnknown)))
    8080            *ppvObject = (IUnknown *)this;
     81#ifdef RT_OS_WINDOWS
     82        else if (guid == Guid(NS_GET_IID(IDispatch)))
     83            *ppvObject = (IDispatch *)this;
     84#endif
    8185        else if (guid == Guid(NS_GET_IID(IUSBDevice)))
    8286            *ppvObject = (IUSBDevice *)this;
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