1999-02-25 18:10:15 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to structured data storage.
|
|
|
|
*
|
|
|
|
* Depends on 'obj_base.h'.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Paul Quinn
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-02-25 18:10:15 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_CONNECTION_H
|
|
|
|
#define __WINE_WINE_OBJ_CONNECTION_H
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Declare the structures
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct tagCONNECTDATA
|
|
|
|
{
|
|
|
|
IUnknown *pUnk;
|
|
|
|
DWORD dwCookie;
|
|
|
|
} CONNECTDATA, *LPCONNECTDATA;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-25 18:10:15 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
DEFINE_GUID(IID_IConnectionPoint, 0xb196b286, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
|
|
|
|
typedef struct IConnectionPoint IConnectionPoint, *LPCONNECTIONPOINT;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IConnectionPointContainer, 0xb196b284, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
|
|
|
|
typedef struct IConnectionPointContainer IConnectionPointContainer, *LPCONNECTIONPOINTCONTAINER;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IEnumConnections, 0xb196b287, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
|
|
|
|
typedef struct IEnumConnections IEnumConnections, *LPENUMCONNECTIONS;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IEnumConnectionPoints, 0xb196b285, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
|
|
|
|
typedef struct IEnumConnectionPoints IEnumConnectionPoints, *LPENUMCONNECTIONPOINTS;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IConnectionPoint interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IConnectionPoint
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IConnectionPoint_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(GetConnectionInterface)(THIS_ IID *pIID) PURE; \
|
|
|
|
STDMETHOD(GetConnectionPointContainer)(THIS_ IConnectionPointContainer **ppCPC) PURE; \
|
|
|
|
STDMETHOD(Advise)(THIS_ IUnknown *pUnkSink, DWORD *pdwCookie) PURE; \
|
|
|
|
STDMETHOD(Unadvise)(THIS_ DWORD dwCookie) PURE; \
|
|
|
|
STDMETHOD(EnumConnections)(THIS_ IEnumConnections **ppEnum) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IConnectionPoint,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IConnectionPoint_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IConnectionPoint_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IConnectionPoint_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IConnectionPointContainer methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IConnectionPoint_GetConnectionInterface(p,a) (p)->lpVtbl->GetConnectionInterface(p,a)
|
|
|
|
#define IConnectionPoint_GetConnectionPointContainer(p,a) (p)->lpVtbl->GetConnectionPointContainer(p,a)
|
|
|
|
#define IConnectionPoint_Advise(p,a,b) (p)->lpVtbl->Advise(p,a,b)
|
|
|
|
#define IConnectionPoint_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
|
|
|
|
#define IConnectionPoint_EnumConnections(p,a) (p)->lpVtbl->EnumConnections(p,a)
|
|
|
|
#endif
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IConnectionPointContainer interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IConnectionPointContainer
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IConnectionPointContainer_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(EnumConnectionPoints)(THIS_ IEnumConnectionPoints **ppEnum) PURE; \
|
|
|
|
STDMETHOD(FindConnectionPoint)(THIS_ REFIID riid, IConnectionPoint **ppCP) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IConnectionPointContainer,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IConnectionPointContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IConnectionPointContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IConnectionPointContainer_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IConnectionPointContainer methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IConnectionPointContainer_EnumConnectionPoints(p,a) (p)->lpVtbl->EnumConnectionPoints(p,a)
|
|
|
|
#define IConnectionPointContainer_FindConnectionPoint(p,a,b) (p)->lpVtbl->FindConnectionPoint(p,a,b)
|
|
|
|
#endif
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumConnections interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IEnumConnections
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IEnumConnections_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(Next)(THIS_ ULONG cConnections, LPCONNECTDATA rgcd, ULONG *pcFectched) PURE; \
|
|
|
|
STDMETHOD(Skip)(THIS_ ULONG cConnections) PURE; \
|
|
|
|
STDMETHOD(Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD(Clone)(THIS_ IEnumConnections **ppEnum) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IEnumConnections,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IEnumConnections_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumConnections_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumConnections_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IConnectionPointContainer methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IEnumConnections_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumConnections_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumConnections_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumConnections_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
#endif
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumConnectionPoints interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IEnumConnectionPoints
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IEnumConnectionPoints_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(Next)(THIS_ ULONG cConnections, LPCONNECTIONPOINT *ppCP, ULONG *pcFectched) PURE; \
|
|
|
|
STDMETHOD(Skip)(THIS_ ULONG cConnections) PURE; \
|
|
|
|
STDMETHOD(Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD(Clone)(THIS_ IEnumConnections **ppEnum) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IEnumConnectionPoints,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IEnumConnectionPoints_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumConnectionPoints_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumConnectionPoints_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IConnectionPointContainer methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IEnumConnectionPoints_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumConnectionPoints_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumConnectionPoints_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumConnectionPoints_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
#endif
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_WINE_OBJ_CONTROL_H */
|