Changeset 41216 in vbox for trunk/include/VBox/com
- Timestamp:
- May 8, 2012 6:05:41 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77855
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/defs.h
r41201 r41216 506 506 kTypeLibraryMajorVersion, kTypeLibraryMinorVersion> 507 507 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 508 534 #define VBOX_DEFAULT_INTERFACE_ENTRIES(iface) \ 509 535 COM_INTERFACE_ENTRY(ISupportErrorInfo) \ … … 514 540 #define VBOX_SCRIPTABLE_IMPL(iface) \ 515 541 public iface 542 #define VBOX_SCRIPTABLE_DISPATCH_IMPL(iface) 516 543 #define VBOX_DEFAULT_INTERFACE_ENTRIES(iface) 517 544 #endif
Note:
See TracChangeset
for help on using the changeset viewer.