2 * Defines the COM interfaces and APIs related to structured data storage.
4 * Depends on 'obj_base.h'.
6 * Copyright (C) 1999 Paul Quinn
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __WINE_WINE_OBJ_CONNECTION_H
24 #define __WINE_WINE_OBJ_CONNECTION_H
28 #endif /* defined(__cplusplus) */
30 /*****************************************************************************
31 * Declare the structures
34 typedef struct tagCONNECTDATA
38 } CONNECTDATA, *LPCONNECTDATA;
40 /*****************************************************************************
41 * Predeclare the interfaces
43 DEFINE_GUID(IID_IConnectionPoint, 0xb196b286, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
44 typedef struct IConnectionPoint IConnectionPoint, *LPCONNECTIONPOINT;
46 DEFINE_GUID(IID_IConnectionPointContainer, 0xb196b284, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
47 typedef struct IConnectionPointContainer IConnectionPointContainer, *LPCONNECTIONPOINTCONTAINER;
49 DEFINE_GUID(IID_IEnumConnections, 0xb196b287, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
50 typedef struct IEnumConnections IEnumConnections, *LPENUMCONNECTIONS;
52 DEFINE_GUID(IID_IEnumConnectionPoints, 0xb196b285, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
53 typedef struct IEnumConnectionPoints IEnumConnectionPoints, *LPENUMCONNECTIONPOINTS;
55 /*****************************************************************************
56 * IConnectionPoint interface
58 #define INTERFACE IConnectionPoint
59 #define IConnectionPoint_METHODS \
61 STDMETHOD(GetConnectionInterface)(THIS_ IID *pIID) PURE; \
62 STDMETHOD(GetConnectionPointContainer)(THIS_ IConnectionPointContainer **ppCPC) PURE; \
63 STDMETHOD(Advise)(THIS_ IUnknown *pUnkSink, DWORD *pdwCookie) PURE; \
64 STDMETHOD(Unadvise)(THIS_ DWORD dwCookie) PURE; \
65 STDMETHOD(EnumConnections)(THIS_ IEnumConnections **ppEnum) PURE;
66 ICOM_DEFINE(IConnectionPoint,IUnknown)
70 /*** IUnknown methods ***/
71 #define IConnectionPoint_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
72 #define IConnectionPoint_AddRef(p) (p)->lpVtbl->AddRef(p)
73 #define IConnectionPoint_Release(p) (p)->lpVtbl->Release(p)
74 /*** IConnectionPointContainer methods ***/
75 #define IConnectionPoint_GetConnectionInterface(p,a) (p)->lpVtbl->GetConnectionInterface(p,a)
76 #define IConnectionPoint_GetConnectionPointContainer(p,a) (p)->lpVtbl->GetConnectionPointContainer(p,a)
77 #define IConnectionPoint_Advise(p,a,b) (p)->lpVtbl->Advise(p,a,b)
78 #define IConnectionPoint_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
79 #define IConnectionPoint_EnumConnections(p,a) (p)->lpVtbl->EnumConnections(p,a)
83 /*****************************************************************************
84 * IConnectionPointContainer interface
86 #define INTERFACE IConnectionPointContainer
87 #define IConnectionPointContainer_METHODS \
89 STDMETHOD(EnumConnectionPoints)(THIS_ IEnumConnectionPoints **ppEnum) PURE; \
90 STDMETHOD(FindConnectionPoint)(THIS_ REFIID riid, IConnectionPoint **ppCP) PURE;
91 ICOM_DEFINE(IConnectionPointContainer,IUnknown)
95 /*** IUnknown methods ***/
96 #define IConnectionPointContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
97 #define IConnectionPointContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
98 #define IConnectionPointContainer_Release(p) (p)->lpVtbl->Release(p)
99 /*** IConnectionPointContainer methods ***/
100 #define IConnectionPointContainer_EnumConnectionPoints(p,a) (p)->lpVtbl->EnumConnectionPoints(p,a)
101 #define IConnectionPointContainer_FindConnectionPoint(p,a,b) (p)->lpVtbl->FindConnectionPoint(p,a,b)
105 /*****************************************************************************
106 * IEnumConnections interface
108 #define INTERFACE IEnumConnections
109 #define IEnumConnections_METHODS \
111 STDMETHOD(Next)(THIS_ ULONG cConnections, LPCONNECTDATA rgcd, ULONG *pcFectched) PURE; \
112 STDMETHOD(Skip)(THIS_ ULONG cConnections) PURE; \
113 STDMETHOD(Reset)(THIS) PURE; \
114 STDMETHOD(Clone)(THIS_ IEnumConnections **ppEnum) PURE;
115 ICOM_DEFINE(IEnumConnections,IUnknown)
119 /*** IUnknown methods ***/
120 #define IEnumConnections_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
121 #define IEnumConnections_AddRef(p) (p)->lpVtbl->AddRef(p)
122 #define IEnumConnections_Release(p) (p)->lpVtbl->Release(p)
123 /*** IConnectionPointContainer methods ***/
124 #define IEnumConnections_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
125 #define IEnumConnections_Skip(p,a) (p)->lpVtbl->Skip(p,a)
126 #define IEnumConnections_Reset(p) (p)->lpVtbl->Reset(p)
127 #define IEnumConnections_Clone(p,a) (p)->lpVtbl->Clone(p,a)
130 /*****************************************************************************
131 * IEnumConnectionPoints interface
133 #define INTERFACE IEnumConnectionPoints
134 #define IEnumConnectionPoints_METHODS \
136 STDMETHOD(Next)(THIS_ ULONG cConnections, LPCONNECTIONPOINT *ppCP, ULONG *pcFectched) PURE; \
137 STDMETHOD(Skip)(THIS_ ULONG cConnections) PURE; \
138 STDMETHOD(Reset)(THIS) PURE; \
139 STDMETHOD(Clone)(THIS_ IEnumConnections **ppEnum) PURE;
140 ICOM_DEFINE(IEnumConnectionPoints,IUnknown)
144 /*** IUnknown methods ***/
145 #define IEnumConnectionPoints_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
146 #define IEnumConnectionPoints_AddRef(p) (p)->lpVtbl->AddRef(p)
147 #define IEnumConnectionPoints_Release(p) (p)->lpVtbl->Release(p)
148 /*** IConnectionPointContainer methods ***/
149 #define IEnumConnectionPoints_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
150 #define IEnumConnectionPoints_Skip(p,a) (p)->lpVtbl->Skip(p,a)
151 #define IEnumConnectionPoints_Reset(p) (p)->lpVtbl->Reset(p)
152 #define IEnumConnectionPoints_Clone(p,a) (p)->lpVtbl->Clone(p,a)
157 #endif /* defined(__cplusplus) */
159 #endif /* __WINE_WINE_OBJ_CONTROL_H */