Changeset 21521 in vbox for trunk/include/VBox
- Timestamp:
- Jul 13, 2009 8:26:40 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49974
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/defs.h
r19134 r21521 580 580 public IDispatchImpl<iface, &IID_##iface, &LIBID_VirtualBox, \ 581 581 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 } 582 607 #else 583 #define VBOX_SCRIPTABLE_IMPL(iface) \608 #define VBOX_SCRIPTABLE_IMPL(iface) \ 584 609 public iface 610 #define VBOX_SCRIPTABLE_DISPATCH_IMPL(iface) 585 611 #endif 586 612
Note:
See TracChangeset
for help on using the changeset viewer.