Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ComObject.h File Reference

Go to the source code of this file.

Defines

#define AFX_COMOBJECT_H__FC590F3A_2FC9_4CF2_A1CB_9F8B9C89CA4F__INCLUDED_
#define DECLARE_DISPATCH()
#define IMPLEMENT_UNKNOWN(theClass, localClass)
#define IMPLEMENT_DISPATCH_UNKNOWN(theClass, localClass)
#define IMPLEMENT_DISPATCH_DISPATCH(theClass, localClass)
#define IMPLEMENT_DISPATCH(theClass, localClass)
#define INTERFACE_TO_CLASS(icClass, icInterface, icIn, icOut)   icClass * icOut = (icClass *)( (BYTE*) icIn - offsetof( icClass, m_x##icInterface ) );


Define Documentation

#define AFX_COMOBJECT_H__FC590F3A_2FC9_4CF2_A1CB_9F8B9C89CA4F__INCLUDED_
 

Definition at line 23 of file ComObject.h.

 
#define DECLARE_DISPATCH  ) 
 

Value:

STDMETHOD(GetTypeInfoCount)(UINT FAR*); \
    STDMETHOD(GetTypeInfo)(UINT, LCID, LPTYPEINFO FAR*); \
    STDMETHOD(GetIDsOfNames)(REFIID, OLECHAR FAR* FAR*, UINT, LCID lcid, DISPID FAR*); \
    STDMETHOD(Invoke)(DISPID, REFIID, LCID, WORD, DISPPARAMS FAR*, VARIANT FAR*, EXCEPINFO FAR*, UINT FAR*);

Definition at line 73 of file ComObject.h.

#define IMPLEMENT_DISPATCH theClass,
localClass   ) 
 

Value:

IMPLEMENT_DISPATCH_UNKNOWN(theClass, localClass) \
        IMPLEMENT_DISPATCH_DISPATCH(theClass, localClass)

Definition at line 135 of file ComObject.h.

#define IMPLEMENT_DISPATCH_DISPATCH theClass,
localClass   ) 
 

Value:

STDMETHODIMP theClass##::X##localClass##::GetTypeInfoCount(UINT FAR* pctinfo) \
        { \
                METHOD_PROLOGUE(theClass, localClass) \
                return pThis->ComGetTypeInfoCount( this, pctinfo ); \
        } \
        STDMETHODIMP theClass##::X##localClass##::GetTypeInfo(UINT itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo) \
        { \
                METHOD_PROLOGUE(theClass, localClass) \
                return pThis->ComGetTypeInfo( this, itinfo, lcid, pptinfo ); \
        } \
        STDMETHODIMP theClass##::X##localClass##::GetIDsOfNames(REFIID riid, OLECHAR FAR* FAR* rgszNames, UINT cNames, LCID lcid, DISPID FAR* rgdispid) \
        { \
                METHOD_PROLOGUE(theClass, localClass) \
                return pThis->ComGetIDsOfNames( this, riid, rgszNames, cNames, lcid, rgdispid ); \
        } \
        STDMETHODIMP theClass##::X##localClass##::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR* pdispparams, VARIANT FAR* pvarResult, EXCEPINFO FAR* pexcepinfo, UINT FAR* puArgErr) \
        { \
                METHOD_PROLOGUE(theClass, localClass) \
                return pThis->ComInvoke( this, dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr ); \
        } \

Definition at line 113 of file ComObject.h.

#define IMPLEMENT_DISPATCH_UNKNOWN theClass,
localClass   ) 
 

Value:

STDMETHODIMP_(ULONG) theClass##::X##localClass##::AddRef()      \
        {                                                                                                                       \
           METHOD_PROLOGUE(theClass, localClass)                                        \
           return pThis->ComAddRef( this );                                                     \
        }                                                                                                                       \
        STDMETHODIMP_(ULONG) theClass##::X##localClass##::Release()     \
        {                                                                                                                       \
           METHOD_PROLOGUE(theClass, localClass)                                        \
           return pThis->ComRelease( this );                                            \
        }                                                                                                                       \
        STDMETHODIMP theClass##::X##localClass##::QueryInterface(REFIID iid, LPVOID* ppvObj)    \
        {                                                                                                                       \
           METHOD_PROLOGUE(theClass, localClass)                                        \
           return pThis->ComQueryInterface( this, iid, ppvObj );        \
        }

Definition at line 96 of file ComObject.h.

#define IMPLEMENT_UNKNOWN theClass,
localClass   ) 
 

Value:

STDMETHODIMP_(ULONG) theClass##::X##localClass##::AddRef()      \
        {                                                                                                                       \
           METHOD_PROLOGUE(theClass, localClass)                                        \
           return pThis->ExternalAddRef();                                                      \
        }                                                                                                                       \
        STDMETHODIMP_(ULONG) theClass##::X##localClass##::Release()     \
        {                                                                                                                       \
           METHOD_PROLOGUE(theClass, localClass)                                        \
           return pThis->ExternalRelease();                                                     \
        }                                                                                                                       \
        STDMETHODIMP theClass##::X##localClass##::QueryInterface(REFIID iid, LPVOID* ppvObj)    \
        {                                                                                                                       \
           METHOD_PROLOGUE(theClass, localClass)                                        \
           return pThis->ExternalQueryInterface( &iid, ppvObj );        \
        }

Definition at line 79 of file ComObject.h.

#define INTERFACE_TO_CLASS icClass,
icInterface,
icIn,
icOut   )     icClass * icOut = (icClass *)( (BYTE*) icIn - offsetof( icClass, m_x##icInterface ) );
 

Definition at line 139 of file ComObject.h.

Referenced by CXMLCOM::Unwrap().


Generated on Thu Dec 15 10:39:55 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2