msdaps: Initial stub.
[wine] / dlls / msdaps / usrmarshal.c
1 /*
2  *    Misc marshaling routinues
3  *
4  * Copyright 2009 Huw Davies
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 #include <stdarg.h>
21 #include <string.h>
22
23 #define COBJMACROS
24 #define NONAMELESSUNION
25 #define NONAMELESSSTRUCT
26
27 #include "windef.h"
28 #include "winbase.h"
29 #include "wingdi.h"
30 #include "winuser.h"
31 #include "winerror.h"
32 #include "objbase.h"
33 #include "oledb.h"
34
35 #include "wine/debug.h"
36
37 WINE_DEFAULT_DEBUG_CHANNEL(oledb);
38
39 HRESULT CALLBACK IDBCreateCommand_CreateCommand_Proxy(IDBCreateCommand* This, IUnknown *pUnkOuter,
40                                                       REFIID riid, IUnknown **ppCommand)
41 {
42     FIXME("(%p, %p, %s, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
43           ppCommand);
44     return E_NOTIMPL;
45 }
46
47 HRESULT __RPC_STUB IDBCreateCommand_CreateCommand_Stub(IDBCreateCommand* This, IUnknown *pUnkOuter,
48                                                        REFIID riid, IUnknown **ppCommand, IErrorInfo **ppErrorInfoRem)
49 {
50     FIXME("(%p, %p, %s, %p, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
51           ppCommand, ppErrorInfoRem);
52     return E_NOTIMPL;
53
54 }
55
56 HRESULT CALLBACK IDBCreateSession_CreateSession_Proxy(IDBCreateSession* This, IUnknown *pUnkOuter,
57                                                       REFIID riid, IUnknown **ppDBSession)
58 {
59     FIXME("(%p, %p, %s, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
60           ppDBSession);
61     return E_NOTIMPL;
62 }
63
64 HRESULT __RPC_STUB IDBCreateSession_CreateSession_Stub(IDBCreateSession* This, IUnknown *pUnkOuter,
65                                                        REFIID riid, IUnknown **ppDBSession, IErrorInfo **ppErrorInfoRem)
66 {
67     FIXME("(%p, %p, %s, %p, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
68           ppDBSession, ppErrorInfoRem);
69     return E_NOTIMPL;
70
71 }
72
73 HRESULT CALLBACK IDBProperties_GetProperties_Proxy(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
74                                                    ULONG *pcPropertySets, DBPROPSET **prgPropertySets)
75 {
76     FIXME("(%p, %d, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
77           prgPropertySets);
78     return E_NOTIMPL;
79 }
80
81 HRESULT __RPC_STUB IDBProperties_GetProperties_Stub(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET *rgPropertyIDSets,
82                                                     ULONG *pcPropertySets, DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
83 {
84     FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
85           prgPropertySets, ppErrorInfoRem);
86     return E_NOTIMPL;
87 }
88
89 HRESULT CALLBACK IDBProperties_GetPropertyInfo_Proxy(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
90                                                      ULONG *pcPropertyInfoSets, DBPROPINFOSET **prgPropertyInfoSets,
91                                                      OLECHAR **ppDescBuffer)
92 {
93     FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
94           prgPropertyInfoSets, ppDescBuffer);
95     return E_NOTIMPL;
96 }
97
98 HRESULT __RPC_STUB IDBProperties_GetPropertyInfo_Stub(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET *rgPropertyIDSets,
99                                                       ULONG *pcPropertyInfoSets, DBPROPINFOSET **prgPropertyInfoSets,
100                                                       ULONG *pcOffsets, DBBYTEOFFSET **prgDescOffsets, ULONG *pcbDescBuffer,
101                                                       OLECHAR **ppDescBuffer, IErrorInfo **ppErrorInfoRem)
102 {
103     FIXME("(%p, %d, %p, %p, %p, %p, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
104           prgPropertyInfoSets, pcOffsets, prgDescOffsets, pcbDescBuffer, ppDescBuffer, ppErrorInfoRem);
105     return E_NOTIMPL;
106 }
107
108 HRESULT CALLBACK IDBProperties_SetProperties_Proxy(IDBProperties* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
109 {
110     FIXME("(%p, %d, %p): stub\n", This, cPropertySets, rgPropertySets);
111     return E_NOTIMPL;
112 }
113
114 HRESULT __RPC_STUB IDBProperties_SetProperties_Stub(IDBProperties* This, ULONG cPropertySets, DBPROPSET *rgPropertySets,
115                                                     ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
116 {
117     FIXME("(%p, %d, %p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, cTotalProps,
118           rgPropStatus, ppErrorInfoRem);
119     return E_NOTIMPL;
120 }
121
122 HRESULT CALLBACK IDBInitialize_Initialize_Proxy(IDBInitialize* This)
123 {
124     FIXME("(%p): stub\n", This);
125     return E_NOTIMPL;
126 }
127
128 HRESULT __RPC_STUB IDBInitialize_Initialize_Stub(IDBInitialize* This, IErrorInfo **ppErrorInfoRem)
129 {
130     FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
131     return E_NOTIMPL;
132 }
133
134 HRESULT CALLBACK IDBInitialize_Uninitialize_Proxy(IDBInitialize* This)
135 {
136     FIXME("(%p): stub\n", This);
137     return E_NOTIMPL;
138 }
139
140 HRESULT __RPC_STUB IDBInitialize_Uninitialize_Stub(IDBInitialize* This, IErrorInfo **ppErrorInfoRem)
141 {
142     FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
143     return E_NOTIMPL;
144 }
145
146 HRESULT CALLBACK IDBDataSourceAdmin_CreateDataSource_Proxy(IDBDataSourceAdmin* This, ULONG cPropertySets,
147                                                            DBPROPSET rgPropertySets[], IUnknown *pUnkOuter,
148                                                            REFIID riid, IUnknown **ppDBSession)
149 {
150     FIXME("(%p, %d, %p, %p, %s, %p): stub\n", This, cPropertySets, rgPropertySets, pUnkOuter,
151           debugstr_guid(riid), ppDBSession);
152     return E_NOTIMPL;
153 }
154
155 HRESULT __RPC_STUB IDBDataSourceAdmin_CreateDataSource_Stub(IDBDataSourceAdmin* This, ULONG cPropertySets,
156                                                             DBPROPSET *rgPropertySets, IUnknown *pUnkOuter,
157                                                             REFIID riid, IUnknown **ppDBSession, ULONG cTotalProps,
158                                                             DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
159 {
160     FIXME("(%p, %d, %p, %p, %s, %p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, pUnkOuter,
161           debugstr_guid(riid), ppDBSession, cTotalProps, rgPropStatus, ppErrorInfoRem);
162     return E_NOTIMPL;
163 }
164
165 HRESULT CALLBACK IDBDataSourceAdmin_DestroyDataSource_Proxy(IDBDataSourceAdmin* This)
166 {
167     FIXME("(%p): stub\n", This);
168     return E_NOTIMPL;
169 }
170
171 HRESULT __RPC_STUB IDBDataSourceAdmin_DestroyDataSource_Stub(IDBDataSourceAdmin* This, IErrorInfo **ppErrorInfoRem)
172 {
173     FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
174     return E_NOTIMPL;
175 }
176
177 HRESULT CALLBACK IDBDataSourceAdmin_GetCreationProperties_Proxy(IDBDataSourceAdmin* This, ULONG cPropertyIDSets,
178                                                                 const DBPROPIDSET rgPropertyIDSets[], ULONG *pcPropertyInfoSets,
179                                                                 DBPROPINFOSET **prgPropertyInfoSets, OLECHAR **ppDescBuffer)
180 {
181     FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
182           prgPropertyInfoSets, ppDescBuffer);
183     return E_NOTIMPL;
184 }
185
186 HRESULT __RPC_STUB IDBDataSourceAdmin_GetCreationProperties_Stub(IDBDataSourceAdmin* This, ULONG cPropertyIDSets,
187                                                                  const DBPROPIDSET *rgPropertyIDSets, ULONG *pcPropertyInfoSets,
188                                                                  DBPROPINFOSET **prgPropertyInfoSets, DBCOUNTITEM *pcOffsets,
189                                                                  DBBYTEOFFSET **prgDescOffsets, ULONG *pcbDescBuffer,
190                                                                  OLECHAR **ppDescBuffer, IErrorInfo **ppErrorInfoRem)
191 {
192     FIXME("(%p, %d, %p, %p, %p, %p, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
193           prgPropertyInfoSets, pcOffsets, prgDescOffsets, pcbDescBuffer, ppDescBuffer, ppErrorInfoRem);
194     return E_NOTIMPL;
195 }
196
197 HRESULT CALLBACK IDBDataSourceAdmin_ModifyDataSource_Proxy(IDBDataSourceAdmin* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
198 {
199     FIXME("(%p, %d, %p): stub\n", This, cPropertySets, rgPropertySets);
200     return E_NOTIMPL;
201 }
202
203 HRESULT __RPC_STUB IDBDataSourceAdmin_ModifyDataSource_Stub(IDBDataSourceAdmin* This, ULONG cPropertySets,
204                                                             DBPROPSET *rgPropertySets, IErrorInfo **ppErrorInfoRem)
205 {
206     FIXME("(%p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, ppErrorInfoRem);
207     return E_NOTIMPL;
208 }
209
210 HRESULT CALLBACK ISessionProperties_GetProperties_Proxy(ISessionProperties* This, ULONG cPropertyIDSets,
211                                                         const DBPROPIDSET rgPropertyIDSets[], ULONG *pcPropertySets,
212                                                         const DBPROPSET **prgPropertySets)
213 {
214     FIXME("(%p, %d, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets,
215           pcPropertySets, prgPropertySets);
216     return E_NOTIMPL;
217 }
218
219 HRESULT __RPC_STUB ISessionProperties_GetProperties_Stub(ISessionProperties* This, ULONG cPropertyIDSets,
220                                                          const DBPROPIDSET *rgPropertyIDSets, ULONG *pcPropertySets,
221                                                          const DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
222 {
223     FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets,
224           pcPropertySets, prgPropertySets, ppErrorInfoRem);
225     return E_NOTIMPL;
226 }
227
228 HRESULT CALLBACK ISessionProperties_SetProperties_Proxy(ISessionProperties* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
229 {
230     FIXME("(%p, %d, %p): stub\n", This, cPropertySets, rgPropertySets);
231     return E_NOTIMPL;
232 }
233
234 HRESULT __RPC_STUB ISessionProperties_SetProperties_Stub(ISessionProperties* This, ULONG cPropertySets, DBPROPSET *rgPropertySets,
235                                                          ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
236 {
237     FIXME("(%p, %d, %p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, cTotalProps,
238           rgPropStatus, ppErrorInfoRem);
239     return E_NOTIMPL;
240 }
241
242 HRESULT CALLBACK IOpenRowset_OpenRowset_Proxy(IOpenRowset* This, IUnknown *pUnkOuter, DBID *pTableID, DBID *pIndexID,
243                                               REFIID riid, ULONG cPropertySets, DBPROPSET rgPropertySets[], IUnknown **ppRowset)
244 {
245     FIXME("(%p, %p, %p, %p, %s, %d, %p, %p): stub\n", This, pUnkOuter, pTableID, pIndexID, debugstr_guid(riid),
246           cPropertySets, rgPropertySets, ppRowset);
247     return E_NOTIMPL;
248 }
249
250 HRESULT __RPC_STUB IOpenRowset_OpenRowset_Stub(IOpenRowset* This, IUnknown *pUnkOuter, DBID *pTableID, DBID *pIndexID,
251                                                REFIID riid, ULONG cPropertySets, DBPROPSET *rgPropertySets,
252                                                IUnknown **ppRowset, ULONG cTotalProps, DBPROPSTATUS *rgPropStatus,
253                                                IErrorInfo **ppErrorInfoRem)
254 {
255     FIXME("(%p, %p, %p, %p, %s, %d, %p, %p, %d, %p, %p): stub\n", This, pUnkOuter, pTableID, pIndexID, debugstr_guid(riid),
256           cPropertySets, rgPropertySets, ppRowset, cTotalProps, rgPropStatus, ppErrorInfoRem);
257     return E_NOTIMPL;
258 }
259
260 HRESULT CALLBACK IBindResource_Bind_Proxy(IBindResource* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
261                                           REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, DBIMPLICITSESSION *pImplSession,
262                                           DBBINDURLSTATUS *pdwBindStatus, IUnknown **ppUnk)
263 {
264     FIXME("(%p, %p, %s, %08x, %s, %s, %p, %p, %p, %p): stub\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
265           debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pImplSession, pdwBindStatus, ppUnk);
266     return E_NOTIMPL;
267 }
268
269 HRESULT __RPC_STUB IBindResource_Bind_Stub(IBindResource* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
270                                            REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, IUnknown *pSessionUnkOuter,
271                                            IID *piid, IUnknown **ppSession, DBBINDURLSTATUS *pdwBindStatus, IUnknown **ppUnk)
272 {
273     FIXME("(%p, %p, %s, %08x, %s, %s, %p, %p, %p, %p, %p, %p): stub\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
274           debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pSessionUnkOuter, piid, ppSession, pdwBindStatus, ppUnk);
275     return E_NOTIMPL;
276 }
277
278 HRESULT CALLBACK ICreateRow_CreateRow_Proxy(ICreateRow* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
279                                             REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, DBIMPLICITSESSION *pImplSession,
280                                             DBBINDURLSTATUS *pdwBindStatus, LPOLESTR *ppwszNewURL, IUnknown **ppUnk)
281 {
282     FIXME("(%p, %p, %s, %08x, %s, %s, %p, %p, %p, %p, %p): stub\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
283           debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pImplSession, pdwBindStatus, ppwszNewURL, ppUnk);
284     return E_NOTIMPL;
285 }
286
287 HRESULT __RPC_STUB ICreateRow_CreateRow_Stub(ICreateRow* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
288                                              REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, IUnknown *pSessionUnkOuter,
289                                              IID *piid, IUnknown **ppSession, DBBINDURLSTATUS *pdwBindStatus,
290                                              LPOLESTR *ppwszNewURL, IUnknown **ppUnk)
291 {
292     FIXME("(%p, %p, %s, %08x, %s, %s, %p, %p, %p, %p, %p, %p, %p): stub\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
293           debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pSessionUnkOuter, piid, ppSession, pdwBindStatus, ppwszNewURL,
294           ppUnk);
295     return E_NOTIMPL;
296 }