push 5aff8350ceade24f8243f07a9cf7ecb816236fb1
[wine/hacks.git] / dlls / msdaps / usrmarshal.c
blob281b1f709a9ded4c888e17322cad1566668a98b5
1 /*
2 * Misc marshaling routinues
4 * Copyright 2009 Huw Davies
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.
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.
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
20 #include <stdarg.h>
21 #include <string.h>
23 #define COBJMACROS
24 #define NONAMELESSUNION
25 #define NONAMELESSSTRUCT
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"
35 #include "wine/debug.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(oledb);
39 HRESULT CALLBACK IDBCreateCommand_CreateCommand_Proxy(IDBCreateCommand* This, IUnknown *pUnkOuter,
40 REFIID riid, IUnknown **ppCommand)
42 FIXME("(%p, %p, %s, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
43 ppCommand);
44 return E_NOTIMPL;
47 HRESULT __RPC_STUB IDBCreateCommand_CreateCommand_Stub(IDBCreateCommand* This, IUnknown *pUnkOuter,
48 REFIID riid, IUnknown **ppCommand, IErrorInfo **ppErrorInfoRem)
50 FIXME("(%p, %p, %s, %p, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
51 ppCommand, ppErrorInfoRem);
52 return E_NOTIMPL;
56 HRESULT CALLBACK IDBCreateSession_CreateSession_Proxy(IDBCreateSession* This, IUnknown *pUnkOuter,
57 REFIID riid, IUnknown **ppDBSession)
59 FIXME("(%p, %p, %s, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
60 ppDBSession);
61 return E_NOTIMPL;
64 HRESULT __RPC_STUB IDBCreateSession_CreateSession_Stub(IDBCreateSession* This, IUnknown *pUnkOuter,
65 REFIID riid, IUnknown **ppDBSession, IErrorInfo **ppErrorInfoRem)
67 FIXME("(%p, %p, %s, %p, %p): stub\n", This, pUnkOuter, debugstr_guid(riid),
68 ppDBSession, ppErrorInfoRem);
69 return E_NOTIMPL;
73 HRESULT CALLBACK IDBProperties_GetProperties_Proxy(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
74 ULONG *pcPropertySets, DBPROPSET **prgPropertySets)
76 FIXME("(%p, %d, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
77 prgPropertySets);
78 return E_NOTIMPL;
81 HRESULT __RPC_STUB IDBProperties_GetProperties_Stub(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET *rgPropertyIDSets,
82 ULONG *pcPropertySets, DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
84 FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
85 prgPropertySets, ppErrorInfoRem);
86 return E_NOTIMPL;
89 HRESULT CALLBACK IDBProperties_GetPropertyInfo_Proxy(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
90 ULONG *pcPropertyInfoSets, DBPROPINFOSET **prgPropertyInfoSets,
91 OLECHAR **ppDescBuffer)
93 FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
94 prgPropertyInfoSets, ppDescBuffer);
95 return E_NOTIMPL;
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)
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;
108 HRESULT CALLBACK IDBProperties_SetProperties_Proxy(IDBProperties* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
110 FIXME("(%p, %d, %p): stub\n", This, cPropertySets, rgPropertySets);
111 return E_NOTIMPL;
114 HRESULT __RPC_STUB IDBProperties_SetProperties_Stub(IDBProperties* This, ULONG cPropertySets, DBPROPSET *rgPropertySets,
115 ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
117 FIXME("(%p, %d, %p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, cTotalProps,
118 rgPropStatus, ppErrorInfoRem);
119 return E_NOTIMPL;
122 HRESULT CALLBACK IDBInitialize_Initialize_Proxy(IDBInitialize* This)
124 FIXME("(%p): stub\n", This);
125 return E_NOTIMPL;
128 HRESULT __RPC_STUB IDBInitialize_Initialize_Stub(IDBInitialize* This, IErrorInfo **ppErrorInfoRem)
130 FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
131 return E_NOTIMPL;
134 HRESULT CALLBACK IDBInitialize_Uninitialize_Proxy(IDBInitialize* This)
136 FIXME("(%p): stub\n", This);
137 return E_NOTIMPL;
140 HRESULT __RPC_STUB IDBInitialize_Uninitialize_Stub(IDBInitialize* This, IErrorInfo **ppErrorInfoRem)
142 FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
143 return E_NOTIMPL;
146 HRESULT CALLBACK IDBDataSourceAdmin_CreateDataSource_Proxy(IDBDataSourceAdmin* This, ULONG cPropertySets,
147 DBPROPSET rgPropertySets[], IUnknown *pUnkOuter,
148 REFIID riid, IUnknown **ppDBSession)
150 FIXME("(%p, %d, %p, %p, %s, %p): stub\n", This, cPropertySets, rgPropertySets, pUnkOuter,
151 debugstr_guid(riid), ppDBSession);
152 return E_NOTIMPL;
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)
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;
165 HRESULT CALLBACK IDBDataSourceAdmin_DestroyDataSource_Proxy(IDBDataSourceAdmin* This)
167 FIXME("(%p): stub\n", This);
168 return E_NOTIMPL;
171 HRESULT __RPC_STUB IDBDataSourceAdmin_DestroyDataSource_Stub(IDBDataSourceAdmin* This, IErrorInfo **ppErrorInfoRem)
173 FIXME("(%p, %p): stub\n", This, ppErrorInfoRem);
174 return E_NOTIMPL;
177 HRESULT CALLBACK IDBDataSourceAdmin_GetCreationProperties_Proxy(IDBDataSourceAdmin* This, ULONG cPropertyIDSets,
178 const DBPROPIDSET rgPropertyIDSets[], ULONG *pcPropertyInfoSets,
179 DBPROPINFOSET **prgPropertyInfoSets, OLECHAR **ppDescBuffer)
181 FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
182 prgPropertyInfoSets, ppDescBuffer);
183 return E_NOTIMPL;
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)
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;
197 HRESULT CALLBACK IDBDataSourceAdmin_ModifyDataSource_Proxy(IDBDataSourceAdmin* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
199 FIXME("(%p, %d, %p): stub\n", This, cPropertySets, rgPropertySets);
200 return E_NOTIMPL;
203 HRESULT __RPC_STUB IDBDataSourceAdmin_ModifyDataSource_Stub(IDBDataSourceAdmin* This, ULONG cPropertySets,
204 DBPROPSET *rgPropertySets, IErrorInfo **ppErrorInfoRem)
206 FIXME("(%p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, ppErrorInfoRem);
207 return E_NOTIMPL;
210 HRESULT CALLBACK ISessionProperties_GetProperties_Proxy(ISessionProperties* This, ULONG cPropertyIDSets,
211 const DBPROPIDSET rgPropertyIDSets[], ULONG *pcPropertySets,
212 const DBPROPSET **prgPropertySets)
214 FIXME("(%p, %d, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets,
215 pcPropertySets, prgPropertySets);
216 return E_NOTIMPL;
219 HRESULT __RPC_STUB ISessionProperties_GetProperties_Stub(ISessionProperties* This, ULONG cPropertyIDSets,
220 const DBPROPIDSET *rgPropertyIDSets, ULONG *pcPropertySets,
221 const DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
223 FIXME("(%p, %d, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets,
224 pcPropertySets, prgPropertySets, ppErrorInfoRem);
225 return E_NOTIMPL;
228 HRESULT CALLBACK ISessionProperties_SetProperties_Proxy(ISessionProperties* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
230 FIXME("(%p, %d, %p): stub\n", This, cPropertySets, rgPropertySets);
231 return E_NOTIMPL;
234 HRESULT __RPC_STUB ISessionProperties_SetProperties_Stub(ISessionProperties* This, ULONG cPropertySets, DBPROPSET *rgPropertySets,
235 ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
237 FIXME("(%p, %d, %p, %d, %p, %p): stub\n", This, cPropertySets, rgPropertySets, cTotalProps,
238 rgPropStatus, ppErrorInfoRem);
239 return E_NOTIMPL;
242 HRESULT CALLBACK IOpenRowset_OpenRowset_Proxy(IOpenRowset* This, IUnknown *pUnkOuter, DBID *pTableID, DBID *pIndexID,
243 REFIID riid, ULONG cPropertySets, DBPROPSET rgPropertySets[], IUnknown **ppRowset)
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;
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)
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;
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)
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;
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)
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;
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)
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;
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)
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;