Add GetSystemWindowsDirectory, GetCurrentHwProfile.
[wine] / include / wine / obj_connection.h
1 /*
2  * Defines the COM interfaces and APIs related to structured data storage.
3  *
4  * Depends on 'obj_base.h'.
5  *
6  * Copyright (C) 1999 Paul Quinn
7  *
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.
12  *
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.
17  *
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
21  */
22
23 #ifndef __WINE_WINE_OBJ_CONNECTION_H
24 #define __WINE_WINE_OBJ_CONNECTION_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* defined(__cplusplus) */
29
30 /*****************************************************************************
31  * Declare the structures
32  */
33
34 typedef struct tagCONNECTDATA
35 {
36                                   IUnknown *pUnk;
37                                           DWORD dwCookie;
38 } CONNECTDATA, *LPCONNECTDATA;
39
40 /*****************************************************************************
41  * Predeclare the interfaces
42  */
43 DEFINE_GUID(IID_IConnectionPoint, 0xb196b286, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
44 typedef struct IConnectionPoint IConnectionPoint, *LPCONNECTIONPOINT;
45
46 DEFINE_GUID(IID_IConnectionPointContainer, 0xb196b284, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
47 typedef struct IConnectionPointContainer IConnectionPointContainer, *LPCONNECTIONPOINTCONTAINER;
48
49 DEFINE_GUID(IID_IEnumConnections, 0xb196b287, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
50 typedef struct IEnumConnections IEnumConnections, *LPENUMCONNECTIONS;
51
52 DEFINE_GUID(IID_IEnumConnectionPoints, 0xb196b285, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07);
53 typedef struct IEnumConnectionPoints IEnumConnectionPoints, *LPENUMCONNECTIONPOINTS;
54
55 /*****************************************************************************
56  * IConnectionPoint interface
57  */
58 #define INTERFACE IConnectionPoint
59 #define IConnectionPoint_METHODS \
60         IUnknown_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)
67 #undef INTERFACE
68
69 #ifdef COBJMACROS
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)
80 #endif
81
82
83 /*****************************************************************************
84  * IConnectionPointContainer interface
85  */
86 #define INTERFACE IConnectionPointContainer
87 #define IConnectionPointContainer_METHODS \
88         IUnknown_METHODS \
89         STDMETHOD(EnumConnectionPoints)(THIS_ IEnumConnectionPoints **ppEnum) PURE; \
90         STDMETHOD(FindConnectionPoint)(THIS_ REFIID riid, IConnectionPoint **ppCP) PURE;
91 ICOM_DEFINE(IConnectionPointContainer,IUnknown)
92 #undef INTERFACE
93
94 #ifdef COBJMACROS
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)
102 #endif
103
104
105 /*****************************************************************************
106  * IEnumConnections interface
107  */
108 #define INTERFACE IEnumConnections
109 #define IEnumConnections_METHODS \
110         IUnknown_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)
116 #undef INTERFACE
117
118 #ifdef COBJMACROS
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)
128 #endif
129
130 /*****************************************************************************
131  * IEnumConnectionPoints interface
132  */
133 #define INTERFACE IEnumConnectionPoints
134 #define IEnumConnectionPoints_METHODS \
135         IUnknown_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)
141 #undef INTERFACE
142
143 #ifdef COBJMACROS
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)
153 #endif
154
155 #ifdef __cplusplus
156 } /* extern "C" */
157 #endif /* defined(__cplusplus) */
158
159 #endif /* __WINE_WINE_OBJ_CONTROL_H */