Altium C++ SDK 3.0
Loading...
Searching...
No Matches
DXP.DispatchImpl.h File Reference
#include <comdef.h>
#include <string>

Go to the source code of this file.

Classes

class  CDispatchRecord
class  CDispatchObject
struct  IServicesSupportInternal
class  CAbstractSupportService

Macros

#define DXP_DISPATCHIMPL_H_INCLUDED
#define QUERYINTERFACE_DECL   virtual HRESULT __stdcall QueryInterface( const IID & riid, void ** ppvObject)
#define QUERYINTERFACE_IMPL(Class, Parent, Intf)

Macro Definition Documentation

◆ DXP_DISPATCHIMPL_H_INCLUDED

#define DXP_DISPATCHIMPL_H_INCLUDED

◆ QUERYINTERFACE_DECL

#define QUERYINTERFACE_DECL   virtual HRESULT __stdcall QueryInterface( const IID & riid, void ** ppvObject)

◆ QUERYINTERFACE_IMPL

#define QUERYINTERFACE_IMPL ( Class,
Parent,
Intf )
Value:
HRESULT __stdcall Class::QueryInterface( const IID & riid, void ** ppvObject) \
{ \
if ( riid == __uuidof(Intf) ) \
{ \
*ppvObject = (Intf *)this; \
AddRef(); \
return S_OK; \
} \
else \
{ \
return Parent::QueryInterface(riid, ppvObject); \
} \
}