ConnectionPoint.h
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:9k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* ConnectionPoint.h generated by WIDL Version 2.2.1 on 06-Dec-01 at 11:42:32 AM */
  2. #include "comBase.h"
  3. #ifndef __INCConnectionPoint_h
  4. #define __INCConnectionPoint_h
  5. #include "comCoreTypes.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. int include_ConnectionPoint (void);
  10. #ifndef __IConnectionPoint_FWD_DEFINED__
  11. #define __IConnectionPoint_FWD_DEFINED__
  12. typedef interface IConnectionPoint IConnectionPoint;
  13. #endif /* __IConnectionPoint_FWD_DEFINED__ */
  14. #ifndef __IConnectionPointContainer_FWD_DEFINED__
  15. #define __IConnectionPointContainer_FWD_DEFINED__
  16. typedef interface IConnectionPointContainer IConnectionPointContainer;
  17. #endif /* __IConnectionPointContainer_FWD_DEFINED__ */
  18. #ifndef __IEnumConnections_FWD_DEFINED__
  19. #define __IEnumConnections_FWD_DEFINED__
  20. typedef interface IEnumConnections IEnumConnections;
  21. #endif /* __IEnumConnections_FWD_DEFINED__ */
  22. #ifndef __IEnumConnectionPoints_FWD_DEFINED__
  23. #define __IEnumConnectionPoints_FWD_DEFINED__
  24. typedef interface IEnumConnectionPoints IEnumConnectionPoints;
  25. #endif /* __IEnumConnectionPoints_FWD_DEFINED__ */
  26. typedef IConnectionPoint* PCONNECTIONPOINT;
  27. typedef IConnectionPoint* LPCONNECTIONPOINT;
  28. typedef IConnectionPointContainer* PCONNECTIONPOINTCONTAINER;
  29. typedef IConnectionPointContainer* LPCONNECTIONPOINTCONTAINER;
  30. typedef IEnumConnections* PENUMCONNECTIONS;
  31. typedef IEnumConnections* LPENUMCONNECTIONS;
  32. struct tagCONNECTDATA
  33. {
  34. IUnknown* pUnk;
  35. DWORD dwCookie;
  36. };
  37. typedef struct tagCONNECTDATA CONNECTDATA;
  38. typedef struct tagCONNECTDATA* PCONNECTDATA;
  39. typedef struct tagCONNECTDATA* LPCONNECTDATA;
  40. typedef IEnumConnectionPoints* PENUMCONNECTIONPOINTS;
  41. typedef IEnumConnectionPoints* LPENUMCONNECTIONPOINTS;
  42. typedef struct
  43.     {
  44.     COM_VTBL_BEGIN
  45.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  46. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  47.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  48. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  49.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  50. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  51.     COM_VTBL_ENTRY (HRESULT, GetConnectionInterface, (IConnectionPoint* pThis, IID* piid));
  52. #define IConnectionPoint_GetConnectionInterface(pThis, piid) pThis->lpVtbl->GetConnectionInterface(COM_ADJUST_THIS(pThis), piid)
  53.     COM_VTBL_ENTRY (HRESULT, GetConnectionPointContainer, (IConnectionPoint* pThis, IConnectionPointContainer** ppCPC));
  54. #define IConnectionPoint_GetConnectionPointContainer(pThis, ppCPC) pThis->lpVtbl->GetConnectionPointContainer(COM_ADJUST_THIS(pThis), ppCPC)
  55.     COM_VTBL_ENTRY (HRESULT, Advise, (IConnectionPoint* pThis, IUnknown* pUnkSink, DWORD* pdwCookie));
  56. #define IConnectionPoint_Advise(pThis, pUnkSink, pdwCookie) pThis->lpVtbl->Advise(COM_ADJUST_THIS(pThis), pUnkSink, pdwCookie)
  57.     COM_VTBL_ENTRY (HRESULT, Unadvise, (IConnectionPoint* pThis, DWORD dwCookie));
  58. #define IConnectionPoint_Unadvise(pThis, dwCookie) pThis->lpVtbl->Unadvise(COM_ADJUST_THIS(pThis), dwCookie)
  59.     COM_VTBL_ENTRY (HRESULT, EnumConnections, (IConnectionPoint* pThis, IEnumConnections** ppEnum));
  60. #define IConnectionPoint_EnumConnections(pThis, ppEnum) pThis->lpVtbl->EnumConnections(COM_ADJUST_THIS(pThis), ppEnum)
  61.     COM_VTBL_END
  62.     } IConnectionPointVtbl;
  63. #ifdef __cplusplus
  64. interface IConnectionPoint : public IUnknown
  65. {
  66. virtual HRESULT GetConnectionInterface (IID* piid) =0;
  67. virtual HRESULT GetConnectionPointContainer (IConnectionPointContainer** ppCPC) =0;
  68. virtual HRESULT Advise (IUnknown* pUnkSink, DWORD* pdwCookie) =0;
  69. virtual HRESULT Unadvise (DWORD dwCookie) =0;
  70. virtual HRESULT EnumConnections (IEnumConnections** ppEnum) =0;
  71. };
  72. #else
  73. /* C interface definition for IConnectionPoint */
  74. interface IConnectionPoint
  75.     {
  76.     const IConnectionPointVtbl *  lpVtbl;
  77.     };
  78. #endif /* __cplusplus */
  79. EXTERN_C const IID IID_IConnectionPoint;
  80. typedef struct
  81.     {
  82.     COM_VTBL_BEGIN
  83.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  84. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  85.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  86. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  87.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  88. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  89.     COM_VTBL_ENTRY (HRESULT, EnumConnectionPoints, (IConnectionPointContainer* pThis, IEnumConnectionPoints** ppEnum));
  90. #define IConnectionPointContainer_EnumConnectionPoints(pThis, ppEnum) pThis->lpVtbl->EnumConnectionPoints(COM_ADJUST_THIS(pThis), ppEnum)
  91.     COM_VTBL_ENTRY (HRESULT, FindConnectionPoint, (IConnectionPointContainer* pThis, REFIID riid, IConnectionPoint** ppCP));
  92. #define IConnectionPointContainer_FindConnectionPoint(pThis, riid, ppCP) pThis->lpVtbl->FindConnectionPoint(COM_ADJUST_THIS(pThis), riid, ppCP)
  93.     COM_VTBL_END
  94.     } IConnectionPointContainerVtbl;
  95. #ifdef __cplusplus
  96. interface IConnectionPointContainer : public IUnknown
  97. {
  98. virtual HRESULT EnumConnectionPoints (IEnumConnectionPoints** ppEnum) =0;
  99. virtual HRESULT FindConnectionPoint (REFIID riid, IConnectionPoint** ppCP) =0;
  100. };
  101. #else
  102. /* C interface definition for IConnectionPointContainer */
  103. interface IConnectionPointContainer
  104.     {
  105.     const IConnectionPointContainerVtbl *  lpVtbl;
  106.     };
  107. #endif /* __cplusplus */
  108. EXTERN_C const IID IID_IConnectionPointContainer;
  109. typedef struct
  110.     {
  111.     COM_VTBL_BEGIN
  112.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  113. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  114.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  115. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  116.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  117. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  118.     COM_VTBL_ENTRY (HRESULT, Next, (IEnumConnections* pThis, ULONG cConnections, CONNECTDATA* rgcd, ULONG* lpcFetched));
  119. #define IEnumConnections_Next(pThis, cConnections, rgcd, lpcFetched) pThis->lpVtbl->Next(COM_ADJUST_THIS(pThis), cConnections, rgcd, lpcFetched)
  120.     COM_VTBL_ENTRY (HRESULT, Skip, (IEnumConnections* pThis, ULONG cConnections));
  121. #define IEnumConnections_Skip(pThis, cConnections) pThis->lpVtbl->Skip(COM_ADJUST_THIS(pThis), cConnections)
  122.     COM_VTBL_ENTRY (HRESULT, Reset, (IEnumConnections* pThis));
  123. #define IEnumConnections_Reset(pThis) pThis->lpVtbl->Reset(COM_ADJUST_THIS(pThis))
  124.     COM_VTBL_ENTRY (HRESULT, Clone, (IEnumConnections* pThis, IEnumConnections** ppEnum));
  125. #define IEnumConnections_Clone(pThis, ppEnum) pThis->lpVtbl->Clone(COM_ADJUST_THIS(pThis), ppEnum)
  126.     COM_VTBL_END
  127.     } IEnumConnectionsVtbl;
  128. #ifdef __cplusplus
  129. interface IEnumConnections : public IUnknown
  130. {
  131. virtual HRESULT Next (ULONG cConnections, CONNECTDATA* rgcd, ULONG* lpcFetched) =0;
  132. virtual HRESULT Skip (ULONG cConnections) =0;
  133. virtual HRESULT Reset () =0;
  134. virtual HRESULT Clone (IEnumConnections** ppEnum) =0;
  135. };
  136. #else
  137. /* C interface definition for IEnumConnections */
  138. interface IEnumConnections
  139.     {
  140.     const IEnumConnectionsVtbl *  lpVtbl;
  141.     };
  142. #endif /* __cplusplus */
  143. EXTERN_C const IID IID_IEnumConnections;
  144. typedef struct
  145.     {
  146.     COM_VTBL_BEGIN
  147.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  148. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  149.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  150. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  151.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  152. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  153.     COM_VTBL_ENTRY (HRESULT, Next, (IEnumConnectionPoints* pThis, ULONG cConnections, IConnectionPoint** rgpcn, ULONG* lpcFetched));
  154. #define IEnumConnectionPoints_Next(pThis, cConnections, rgpcn, lpcFetched) pThis->lpVtbl->Next(COM_ADJUST_THIS(pThis), cConnections, rgpcn, lpcFetched)
  155.     COM_VTBL_ENTRY (HRESULT, Skip, (IEnumConnectionPoints* pThis, ULONG cConnections));
  156. #define IEnumConnectionPoints_Skip(pThis, cConnections) pThis->lpVtbl->Skip(COM_ADJUST_THIS(pThis), cConnections)
  157.     COM_VTBL_ENTRY (HRESULT, Reset, (IEnumConnectionPoints* pThis));
  158. #define IEnumConnectionPoints_Reset(pThis) pThis->lpVtbl->Reset(COM_ADJUST_THIS(pThis))
  159.     COM_VTBL_ENTRY (HRESULT, Clone, (IEnumConnectionPoints* pThis, IEnumConnectionPoints** ppEnum));
  160. #define IEnumConnectionPoints_Clone(pThis, ppEnum) pThis->lpVtbl->Clone(COM_ADJUST_THIS(pThis), ppEnum)
  161.     COM_VTBL_END
  162.     } IEnumConnectionPointsVtbl;
  163. #ifdef __cplusplus
  164. interface IEnumConnectionPoints : public IUnknown
  165. {
  166. virtual HRESULT Next (ULONG cConnections, IConnectionPoint** rgpcn, ULONG* lpcFetched) =0;
  167. virtual HRESULT Skip (ULONG cConnections) =0;
  168. virtual HRESULT Reset () =0;
  169. virtual HRESULT Clone (IEnumConnectionPoints** ppEnum) =0;
  170. };
  171. #else
  172. /* C interface definition for IEnumConnectionPoints */
  173. interface IEnumConnectionPoints
  174.     {
  175.     const IEnumConnectionPointsVtbl *  lpVtbl;
  176.     };
  177. #endif /* __cplusplus */
  178. EXTERN_C const IID IID_IEnumConnectionPoints;
  179. #ifdef __cplusplus
  180. }
  181. #endif
  182. #endif /* __INCConnectionPoint_h */