windows.gaming.input: Avoid leaking IDirectInputEffect reference (Valgrind).
[wine.git] / dlls / msdaps / usrmarshal.c
blob10b840b19911ac390662de352144439b7cee53c3
1 /*
2 * Misc marshaling routines
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
25 #include "windef.h"
26 #include "winbase.h"
27 #include "wingdi.h"
28 #include "winuser.h"
29 #include "winerror.h"
30 #include "objbase.h"
31 #include "oleauto.h"
32 #include "oledb.h"
34 #include "row_server.h"
36 #include "wine/debug.h"
38 WINE_DEFAULT_DEBUG_CHANNEL(oledb);
40 HRESULT CALLBACK IDBCreateCommand_CreateCommand_Proxy(IDBCreateCommand* This, IUnknown *pUnkOuter,
41 REFIID riid, IUnknown **ppCommand)
43 IErrorInfo *error = NULL;
44 HRESULT hr;
46 TRACE("(%p, %p, %s, %p)\n", This, pUnkOuter, debugstr_guid(riid), ppCommand);
47 hr = IDBCreateCommand_RemoteCreateCommand_Proxy(This, pUnkOuter, riid, ppCommand, &error);
48 if(error)
50 SetErrorInfo(0, error);
51 IErrorInfo_Release(error);
53 return hr;
56 HRESULT __RPC_STUB IDBCreateCommand_CreateCommand_Stub(IDBCreateCommand* This, IUnknown *pUnkOuter,
57 REFIID riid, IUnknown **ppCommand, IErrorInfo **ppErrorInfoRem)
59 HRESULT hr;
61 TRACE("(%p, %p, %s, %p, %p)\n", This, pUnkOuter, debugstr_guid(riid), ppCommand, ppErrorInfoRem);
63 *ppErrorInfoRem = NULL;
64 hr = IDBCreateCommand_CreateCommand(This, pUnkOuter, riid, ppCommand);
65 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
67 return hr;
70 HRESULT CALLBACK IDBCreateSession_CreateSession_Proxy(IDBCreateSession* This, IUnknown *pUnkOuter,
71 REFIID riid, IUnknown **ppDBSession)
73 IErrorInfo *error = NULL;
74 HRESULT hr;
76 TRACE("(%p, %p, %s, %p)\n", This, pUnkOuter, debugstr_guid(riid), ppDBSession);
77 hr = IDBCreateSession_RemoteCreateSession_Proxy(This, pUnkOuter, riid, ppDBSession, &error);
78 if(error)
80 SetErrorInfo(0, error);
81 IErrorInfo_Release(error);
83 return hr;
86 HRESULT __RPC_STUB IDBCreateSession_CreateSession_Stub(IDBCreateSession* This, IUnknown *pUnkOuter,
87 REFIID riid, IUnknown **ppDBSession, IErrorInfo **ppErrorInfoRem)
89 HRESULT hr;
90 TRACE("(%p, %p, %s, %p, %p)\n", This, pUnkOuter, debugstr_guid(riid),
91 ppDBSession, ppErrorInfoRem);
93 *ppErrorInfoRem = NULL;
94 hr = IDBCreateSession_CreateSession(This, pUnkOuter, riid, ppDBSession);
95 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
97 return hr;
100 HRESULT CALLBACK IDBProperties_GetProperties_Proxy(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
101 ULONG *pcPropertySets, DBPROPSET **prgPropertySets)
103 IErrorInfo *error = NULL;
104 HRESULT hr;
106 TRACE("(%p, %ld, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
107 prgPropertySets);
108 hr = IDBProperties_RemoteGetProperties_Proxy(This, cPropertyIDSets, rgPropertyIDSets,
109 pcPropertySets, prgPropertySets, &error);
110 if(error)
112 SetErrorInfo(0, error);
113 IErrorInfo_Release(error);
115 return hr;
118 HRESULT __RPC_STUB IDBProperties_GetProperties_Stub(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET *rgPropertyIDSets,
119 ULONG *pcPropertySets, DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
121 HRESULT hr;
123 TRACE("(%p, %ld, %p, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
124 prgPropertySets, ppErrorInfoRem);
125 *pcPropertySets = 0;
126 *ppErrorInfoRem = NULL;
127 hr = IDBProperties_GetProperties(This, cPropertyIDSets, rgPropertyIDSets,
128 pcPropertySets, prgPropertySets);
129 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
131 return hr;
134 HRESULT CALLBACK IDBProperties_GetPropertyInfo_Proxy(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
135 ULONG *pcPropertyInfoSets, DBPROPINFOSET **prgPropertyInfoSets,
136 OLECHAR **ppDescBuffer)
138 FIXME("(%p, %ld, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
139 prgPropertyInfoSets, ppDescBuffer);
140 return E_NOTIMPL;
143 HRESULT __RPC_STUB IDBProperties_GetPropertyInfo_Stub(IDBProperties* This, ULONG cPropertyIDSets, const DBPROPIDSET *rgPropertyIDSets,
144 ULONG *pcPropertyInfoSets, DBPROPINFOSET **prgPropertyInfoSets,
145 ULONG *pcOffsets, DBBYTEOFFSET **prgDescOffsets, ULONG *pcbDescBuffer,
146 OLECHAR **ppDescBuffer, IErrorInfo **ppErrorInfoRem)
148 FIXME("(%p, %ld, %p, %p, %p, %p, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
149 prgPropertyInfoSets, pcOffsets, prgDescOffsets, pcbDescBuffer, ppDescBuffer, ppErrorInfoRem);
150 return E_NOTIMPL;
153 HRESULT CALLBACK IDBProperties_SetProperties_Proxy(IDBProperties* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
155 ULONG prop_set, prop, total_props = 0;
156 IErrorInfo *error = NULL;
157 HRESULT hr;
158 DBPROPSTATUS *status;
160 TRACE("(%p, %ld, %p)\n", This, cPropertySets, rgPropertySets);
162 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
163 total_props += rgPropertySets[prop_set].cProperties;
165 if(total_props == 0) return S_OK;
167 status = CoTaskMemAlloc(total_props * sizeof(*status));
168 if(!status) return E_OUTOFMEMORY;
170 hr = IDBProperties_RemoteSetProperties_Proxy(This, cPropertySets, rgPropertySets,
171 total_props, status, &error);
172 if(error)
174 SetErrorInfo(0, error);
175 IErrorInfo_Release(error);
178 total_props = 0;
179 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
180 for(prop = 0; prop < rgPropertySets[prop_set].cProperties; prop++)
181 rgPropertySets[prop_set].rgProperties[prop].dwStatus = status[total_props++];
183 CoTaskMemFree(status);
184 return hr;
187 HRESULT __RPC_STUB IDBProperties_SetProperties_Stub(IDBProperties* This, ULONG cPropertySets, DBPROPSET *rgPropertySets,
188 ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
190 ULONG prop_set, prop, total_props = 0;
191 HRESULT hr;
193 TRACE("(%p, %ld, %p, %ld, %p, %p)\n", This, cPropertySets, rgPropertySets, cTotalProps,
194 rgPropStatus, ppErrorInfoRem);
196 *ppErrorInfoRem = NULL;
197 hr = IDBProperties_SetProperties(This, cPropertySets, rgPropertySets);
198 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
200 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
201 for(prop = 0; prop < rgPropertySets[prop_set].cProperties; prop++)
202 rgPropStatus[total_props++] = rgPropertySets[prop_set].rgProperties[prop].dwStatus;
204 return hr;
207 HRESULT CALLBACK IDBInitialize_Initialize_Proxy(IDBInitialize* This)
209 IErrorInfo *error = NULL;
210 HRESULT hr;
212 TRACE("(%p)\n", This);
213 hr = IDBInitialize_RemoteInitialize_Proxy(This, &error);
214 if(error)
216 SetErrorInfo(0, error);
217 IErrorInfo_Release(error);
219 return hr;
222 HRESULT __RPC_STUB IDBInitialize_Initialize_Stub(IDBInitialize* This, IErrorInfo **ppErrorInfoRem)
224 HRESULT hr;
225 TRACE("(%p, %p)\n", This, ppErrorInfoRem);
227 *ppErrorInfoRem = NULL;
228 hr = IDBInitialize_Initialize(This);
229 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
231 return hr;
234 HRESULT CALLBACK IDBInitialize_Uninitialize_Proxy(IDBInitialize* This)
236 IErrorInfo *error = NULL;
237 HRESULT hr;
239 TRACE("(%p)\n", This);
240 hr = IDBInitialize_RemoteUninitialize_Proxy(This, &error);
241 if(error)
243 SetErrorInfo(0, error);
244 IErrorInfo_Release(error);
246 return hr;
249 HRESULT __RPC_STUB IDBInitialize_Uninitialize_Stub(IDBInitialize* This, IErrorInfo **error)
251 HRESULT hr;
253 TRACE("(%p, %p)\n", This, error);
254 *error = NULL;
255 hr = IDBInitialize_Uninitialize(This);
256 if(FAILED(hr)) GetErrorInfo(0, error);
258 return hr;
261 HRESULT CALLBACK IDBDataSourceAdmin_CreateDataSource_Proxy(IDBDataSourceAdmin* This, ULONG cPropertySets,
262 DBPROPSET rgPropertySets[], IUnknown *pUnkOuter,
263 REFIID riid, IUnknown **ppDBSession)
265 ULONG prop_set, prop, total_props = 0;
266 IErrorInfo *error = NULL;
267 HRESULT hr;
268 DBPROPSTATUS *status;
270 TRACE("(%p, %ld, %p, %p, %s, %p)\n", This, cPropertySets, rgPropertySets, pUnkOuter,
271 debugstr_guid(riid), ppDBSession);
273 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
274 total_props += rgPropertySets[prop_set].cProperties;
276 if(total_props == 0) return S_OK;
278 status = CoTaskMemAlloc(total_props * sizeof(*status));
279 if(!status) return E_OUTOFMEMORY;
281 hr = IDBDataSourceAdmin_RemoteCreateDataSource_Proxy(This, cPropertySets, rgPropertySets, pUnkOuter,
282 riid, ppDBSession, total_props, status, &error);
283 if(error)
285 SetErrorInfo(0, error);
286 IErrorInfo_Release(error);
289 total_props = 0;
290 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
291 for(prop = 0; prop < rgPropertySets[prop_set].cProperties; prop++)
292 rgPropertySets[prop_set].rgProperties[prop].dwStatus = status[total_props++];
294 CoTaskMemFree(status);
295 return hr;
298 HRESULT __RPC_STUB IDBDataSourceAdmin_CreateDataSource_Stub(IDBDataSourceAdmin* This, ULONG cPropertySets,
299 DBPROPSET *rgPropertySets, IUnknown *pUnkOuter,
300 REFIID riid, IUnknown **ppDBSession, ULONG cTotalProps,
301 DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
303 ULONG prop_set, prop, total_props = 0;
304 HRESULT hr;
306 TRACE("(%p, %ld, %p, %p, %s, %p, %ld, %p, %p)\n", This, cPropertySets, rgPropertySets, pUnkOuter,
307 debugstr_guid(riid), ppDBSession, cTotalProps, rgPropStatus, ppErrorInfoRem);
309 *ppErrorInfoRem = NULL;
310 hr = IDBDataSourceAdmin_CreateDataSource(This, cPropertySets, rgPropertySets, pUnkOuter, riid, ppDBSession);
311 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
313 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
314 for(prop = 0; prop < rgPropertySets[prop_set].cProperties; prop++)
315 rgPropStatus[total_props++] = rgPropertySets[prop_set].rgProperties[prop].dwStatus;
317 return hr;
320 HRESULT CALLBACK IDBDataSourceAdmin_DestroyDataSource_Proxy(IDBDataSourceAdmin* This)
322 IErrorInfo *error = NULL;
323 HRESULT hr;
325 TRACE("(%p)\n", This);
326 hr = IDBDataSourceAdmin_RemoteDestroyDataSource_Proxy(This, &error);
327 if(error)
329 SetErrorInfo(0, error);
330 IErrorInfo_Release(error);
332 return hr;
335 HRESULT __RPC_STUB IDBDataSourceAdmin_DestroyDataSource_Stub(IDBDataSourceAdmin* This, IErrorInfo **error)
337 HRESULT hr;
339 TRACE("(%p, %p)\n", This, error);
340 *error = NULL;
341 hr = IDBDataSourceAdmin_DestroyDataSource(This);
342 if(FAILED(hr)) GetErrorInfo(0, error);
344 return hr;
347 HRESULT CALLBACK IDBDataSourceAdmin_GetCreationProperties_Proxy(IDBDataSourceAdmin* This, ULONG cPropertyIDSets,
348 const DBPROPIDSET rgPropertyIDSets[], ULONG *pcPropertyInfoSets,
349 DBPROPINFOSET **prgPropertyInfoSets, OLECHAR **ppDescBuffer)
351 FIXME("(%p, %ld, %p, %p, %p, %p): stub\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
352 prgPropertyInfoSets, ppDescBuffer);
353 return E_NOTIMPL;
356 HRESULT __RPC_STUB IDBDataSourceAdmin_GetCreationProperties_Stub(IDBDataSourceAdmin* This, ULONG cPropertyIDSets,
357 const DBPROPIDSET *rgPropertyIDSets, ULONG *pcPropertyInfoSets,
358 DBPROPINFOSET **prgPropertyInfoSets, DBCOUNTITEM *pcOffsets,
359 DBBYTEOFFSET **prgDescOffsets, ULONG *pcbDescBuffer,
360 OLECHAR **ppDescBuffer, IErrorInfo **error)
362 HRESULT hr;
364 TRACE("(%p, %ld, %p, %p, %p, %p, %p, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
365 prgPropertyInfoSets, pcOffsets, prgDescOffsets, pcbDescBuffer, ppDescBuffer, error);
366 *error = NULL;
367 hr = IDBDataSourceAdmin_GetCreationProperties(This, cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets,
368 prgPropertyInfoSets, ppDescBuffer);
369 if(FAILED(hr)) GetErrorInfo(0, error);
371 return hr;
374 HRESULT CALLBACK IDBDataSourceAdmin_ModifyDataSource_Proxy(IDBDataSourceAdmin* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
376 IErrorInfo *error = NULL;
377 HRESULT hr;
379 TRACE("(%p, %ld, %p)\n", This, cPropertySets, rgPropertySets);
380 hr = IDBDataSourceAdmin_RemoteModifyDataSource_Proxy(This, cPropertySets, rgPropertySets, &error);
381 if(error)
383 SetErrorInfo(0, error);
384 IErrorInfo_Release(error);
387 return hr;
390 HRESULT __RPC_STUB IDBDataSourceAdmin_ModifyDataSource_Stub(IDBDataSourceAdmin* This, ULONG cPropertySets,
391 DBPROPSET *rgPropertySets, IErrorInfo **error)
393 HRESULT hr;
395 TRACE("(%p, %ld, %p, %p)\n", This, cPropertySets, rgPropertySets, error);
396 *error = NULL;
397 hr = IDBDataSourceAdmin_ModifyDataSource(This, cPropertySets, rgPropertySets);
398 if(FAILED(hr)) GetErrorInfo(0, error);
400 return hr;
403 HRESULT CALLBACK ISessionProperties_GetProperties_Proxy(ISessionProperties* This, ULONG cPropertyIDSets,
404 const DBPROPIDSET rgPropertyIDSets[], ULONG *pcPropertySets,
405 DBPROPSET **prgPropertySets)
407 IErrorInfo *error = NULL;
408 HRESULT hr;
410 TRACE("(%p, %ld, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets,
411 pcPropertySets, prgPropertySets);
413 hr = ISessionProperties_RemoteGetProperties_Proxy(This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets,
414 prgPropertySets, &error);
415 if(error)
417 SetErrorInfo(0, error);
418 IErrorInfo_Release(error);
421 return hr;
424 HRESULT __RPC_STUB ISessionProperties_GetProperties_Stub(ISessionProperties* This, ULONG cPropertyIDSets,
425 const DBPROPIDSET *rgPropertyIDSets, ULONG *pcPropertySets,
426 DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
428 HRESULT hr;
430 TRACE("(%p, %ld, %p, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets,
431 pcPropertySets, prgPropertySets, ppErrorInfoRem);
433 hr = ISessionProperties_GetProperties(This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets);
434 if (FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
436 return hr;
439 HRESULT CALLBACK ISessionProperties_SetProperties_Proxy(ISessionProperties* This, ULONG cPropertySets, DBPROPSET rgPropertySets[])
441 ULONG prop_set, prop, total_props = 0;
442 IErrorInfo *error = NULL;
443 HRESULT hr;
444 DBPROPSTATUS *status;
446 TRACE("(%p, %ld, %p)\n", This, cPropertySets, rgPropertySets);
448 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
449 total_props += rgPropertySets[prop_set].cProperties;
451 if(total_props == 0) return S_OK;
453 status = CoTaskMemAlloc(total_props * sizeof(*status));
454 if(!status) return E_OUTOFMEMORY;
456 hr = ISessionProperties_RemoteSetProperties_Proxy(This, cPropertySets, rgPropertySets,
457 total_props, status, &error);
458 if(error)
460 SetErrorInfo(0, error);
461 IErrorInfo_Release(error);
464 total_props = 0;
465 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
466 for(prop = 0; prop < rgPropertySets[prop_set].cProperties; prop++)
467 rgPropertySets[prop_set].rgProperties[prop].dwStatus = status[total_props++];
469 CoTaskMemFree(status);
470 return hr;
473 HRESULT __RPC_STUB ISessionProperties_SetProperties_Stub(ISessionProperties* This, ULONG cPropertySets, DBPROPSET *rgPropertySets,
474 ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, IErrorInfo **ppErrorInfoRem)
476 ULONG prop_set, prop, total_props = 0;
477 HRESULT hr;
479 TRACE("(%p, %ld, %p, %ld, %p, %p)\n", This, cPropertySets, rgPropertySets, cTotalProps,
480 rgPropStatus, ppErrorInfoRem);
482 *ppErrorInfoRem = NULL;
483 hr = ISessionProperties_SetProperties(This, cPropertySets, rgPropertySets);
484 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
486 for(prop_set = 0; prop_set < cPropertySets; prop_set++)
487 for(prop = 0; prop < rgPropertySets[prop_set].cProperties; prop++)
488 rgPropStatus[total_props++] = rgPropertySets[prop_set].rgProperties[prop].dwStatus;
490 return hr;
493 HRESULT CALLBACK IOpenRowset_OpenRowset_Proxy(IOpenRowset* This, IUnknown *pUnkOuter, DBID *pTableID, DBID *pIndexID,
494 REFIID riid, ULONG cPropertySets, DBPROPSET rgPropertySets[], IUnknown **ppRowset)
496 FIXME("(%p, %p, %p, %p, %s, %ld, %p, %p): stub\n", This, pUnkOuter, pTableID, pIndexID, debugstr_guid(riid),
497 cPropertySets, rgPropertySets, ppRowset);
498 return E_NOTIMPL;
501 HRESULT __RPC_STUB IOpenRowset_OpenRowset_Stub(IOpenRowset* This, IUnknown *pUnkOuter, DBID *pTableID, DBID *pIndexID,
502 REFIID riid, ULONG cPropertySets, DBPROPSET *rgPropertySets,
503 IUnknown **ppRowset, ULONG cTotalProps, DBPROPSTATUS *rgPropStatus,
504 IErrorInfo **ppErrorInfoRem)
506 FIXME("(%p, %p, %p, %p, %s, %ld, %p, %p, %ld, %p, %p): stub\n", This, pUnkOuter, pTableID, pIndexID, debugstr_guid(riid),
507 cPropertySets, rgPropertySets, ppRowset, cTotalProps, rgPropStatus, ppErrorInfoRem);
508 return E_NOTIMPL;
511 HRESULT CALLBACK IBindResource_Bind_Proxy(IBindResource* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
512 REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, DBIMPLICITSESSION *pImplSession,
513 DBBINDURLSTATUS *pdwBindStatus, IUnknown **ppUnk)
515 HRESULT hr;
517 TRACE("(%p, %p, %s, %08lx, %s, %s, %p, %p, %p, %p)\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
518 debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pImplSession, pdwBindStatus, ppUnk);
520 if(pUnkOuter)
522 FIXME("Aggregation not supported\n");
523 return CLASS_E_NOAGGREGATION;
526 hr = IBindResource_RemoteBind_Proxy(This, pUnkOuter, pwszURL, dwBindURLFlags, rguid, riid, pAuthenticate,
527 pImplSession ? pImplSession->pUnkOuter : NULL, pImplSession ? pImplSession->piid : NULL,
528 pImplSession ? &pImplSession->pSession : NULL, pdwBindStatus, ppUnk);
529 return hr;
532 HRESULT __RPC_STUB IBindResource_Bind_Stub(IBindResource* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
533 REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, IUnknown *pSessionUnkOuter,
534 IID *piid, IUnknown **ppSession, DBBINDURLSTATUS *pdwBindStatus, IUnknown **ppUnk)
536 HRESULT hr;
537 DBIMPLICITSESSION impl_session;
538 IWineRowServer *server;
539 IMarshal *marshal;
540 IUnknown *obj;
542 TRACE("(%p, %p, %s, %08lx, %s, %s, %p, %p, %p, %p, %p, %p)\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
543 debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pSessionUnkOuter, piid, ppSession, pdwBindStatus, ppUnk);
545 *ppUnk = NULL;
547 if(IsEqualGUID(rguid, &DBGUID_ROWSET))
548 hr = CoCreateInstance(&CLSID_wine_rowset_server, NULL, CLSCTX_INPROC_SERVER, &IID_IWineRowServer, (void**)&server);
549 else if(IsEqualGUID(rguid, &DBGUID_ROW))
550 hr = CoCreateInstance(&CLSID_wine_row_server, NULL, CLSCTX_INPROC_SERVER, &IID_IWineRowServer, (void**)&server);
551 else
553 hr = E_NOTIMPL;
554 FIXME("Unhandled object %s\n", debugstr_guid(rguid));
557 if(FAILED(hr)) return hr;
559 impl_session.pUnkOuter = pSessionUnkOuter;
560 impl_session.piid = piid;
561 impl_session.pSession = NULL;
563 IWineRowServer_GetMarshal(server, &marshal);
565 hr = IBindResource_Bind(This, (IUnknown*)marshal, pwszURL, dwBindURLFlags, rguid, &IID_IUnknown, pAuthenticate,
566 ppSession ? &impl_session : NULL, pdwBindStatus, &obj);
568 IMarshal_Release(marshal);
569 if(FAILED(hr))
571 IWineRowServer_Release(server);
572 return hr;
575 IWineRowServer_SetInnerUnk(server, obj);
576 hr = IUnknown_QueryInterface(obj, riid, (void**)ppUnk);
577 IUnknown_Release(obj);
579 if(ppSession) *ppSession = impl_session.pSession;
580 return hr;
583 HRESULT CALLBACK ICreateRow_CreateRow_Proxy(ICreateRow* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
584 REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, DBIMPLICITSESSION *pImplSession,
585 DBBINDURLSTATUS *pdwBindStatus, LPOLESTR *ppwszNewURL, IUnknown **ppUnk)
587 HRESULT hr;
589 TRACE("(%p, %p, %s, %08lx, %s, %s, %p, %p, %p, %p, %p)\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
590 debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pImplSession, pdwBindStatus, ppwszNewURL, ppUnk);
592 if(pUnkOuter)
594 FIXME("Aggregation not supported\n");
595 return CLASS_E_NOAGGREGATION;
598 hr = ICreateRow_RemoteCreateRow_Proxy(This, pUnkOuter, pwszURL, dwBindURLFlags, rguid, riid, pAuthenticate,
599 pImplSession ? pImplSession->pUnkOuter : NULL, pImplSession ? pImplSession->piid : NULL,
600 pImplSession ? &pImplSession->pSession : NULL, pdwBindStatus, ppwszNewURL, ppUnk);
601 return hr;
604 HRESULT __RPC_STUB ICreateRow_CreateRow_Stub(ICreateRow* This, IUnknown *pUnkOuter, LPCOLESTR pwszURL, DBBINDURLFLAG dwBindURLFlags,
605 REFGUID rguid, REFIID riid, IAuthenticate *pAuthenticate, IUnknown *pSessionUnkOuter,
606 IID *piid, IUnknown **ppSession, DBBINDURLSTATUS *pdwBindStatus,
607 LPOLESTR *ppwszNewURL, IUnknown **ppUnk)
609 HRESULT hr;
610 DBIMPLICITSESSION impl_session;
611 IWineRowServer *row_server;
612 IMarshal *marshal;
613 IUnknown *obj;
615 TRACE("(%p, %p, %s, %08lx, %s, %s, %p, %p, %p, %p, %p, %p, %p)\n", This, pUnkOuter, debugstr_w(pwszURL), dwBindURLFlags,
616 debugstr_guid(rguid), debugstr_guid(riid), pAuthenticate, pSessionUnkOuter, piid, ppSession, pdwBindStatus, ppwszNewURL,
617 ppUnk);
619 *ppUnk = NULL;
621 hr = CoCreateInstance(&CLSID_wine_row_server, NULL, CLSCTX_INPROC_SERVER, &IID_IWineRowServer, (void**)&row_server);
622 if(FAILED(hr)) return hr;
624 impl_session.pUnkOuter = pSessionUnkOuter;
625 impl_session.piid = piid;
626 impl_session.pSession = NULL;
628 IWineRowServer_GetMarshal(row_server, &marshal);
630 hr = ICreateRow_CreateRow(This, (IUnknown*) marshal, pwszURL, dwBindURLFlags, rguid, &IID_IUnknown, pAuthenticate,
631 ppSession ? &impl_session : NULL, pdwBindStatus, ppwszNewURL, &obj);
632 IMarshal_Release(marshal);
634 if(FAILED(hr))
636 IWineRowServer_Release(row_server);
637 return hr;
640 IWineRowServer_SetInnerUnk(row_server, obj);
641 hr = IUnknown_QueryInterface(obj, riid, (void**)ppUnk);
642 IUnknown_Release(obj);
644 if(ppSession) *ppSession = impl_session.pSession;
645 return hr;
648 HRESULT CALLBACK IAccessor_AddRefAccessor_Proxy(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *refcount)
650 IErrorInfo *errorinfo;
651 DBREFCOUNT ref;
652 HRESULT hr;
654 TRACE("(%p)->(%08Ix, %p)\n", This, hAccessor, refcount);
656 if (!refcount)
657 refcount = &ref;
659 errorinfo = NULL;
660 hr = IAccessor_RemoteAddRefAccessor_Proxy(This, hAccessor, refcount, &errorinfo);
661 if (errorinfo)
663 SetErrorInfo(0, errorinfo);
664 IErrorInfo_Release(errorinfo);
667 return hr;
670 HRESULT __RPC_STUB IAccessor_AddRefAccessor_Stub(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *pcRefCount,
671 IErrorInfo **ppErrorInfoRem)
673 HRESULT hr;
675 TRACE("(%p)->(%08Ix, %p, %p)\n", This, hAccessor, pcRefCount, ppErrorInfoRem);
677 hr = IAccessor_AddRefAccessor(This, hAccessor, pcRefCount);
678 if (FAILED(hr))
679 GetErrorInfo(0, ppErrorInfoRem);
681 return hr;
684 HRESULT CALLBACK IAccessor_CreateAccessor_Proxy(IAccessor* This, DBACCESSORFLAGS dwAccessorFlags, DBCOUNTITEM cBindings,
685 const DBBINDING rgBindings[], DBLENGTH cbRowSize, HACCESSOR *phAccessor,
686 DBBINDSTATUS rgStatus[])
688 IErrorInfo *error = NULL;
689 HRESULT hr;
690 DBCOUNTITEM i;
692 TRACE("(%p)->(%08lx, %Id, %p, %Id, %p, %p)\n", This, dwAccessorFlags, cBindings, rgBindings,
693 cbRowSize, phAccessor, rgStatus);
695 for(i = 0; i < cBindings; i++)
697 TRACE("%Id: ord %Id val off %Id len off %Id stat off %Id part %04lx mem_owner %ld max_len %Id type %04x\n",
698 i, rgBindings[i].iOrdinal, rgBindings[i].obValue, rgBindings[i].obLength, rgBindings[i].obStatus,
699 rgBindings[i].dwPart, rgBindings[i].dwMemOwner, rgBindings[i].cbMaxLen, rgBindings[i].wType);
702 hr = IAccessor_RemoteCreateAccessor_Proxy(This, dwAccessorFlags, cBindings, (DBBINDING *)rgBindings,
703 cbRowSize, phAccessor, rgStatus, &error);
704 if(error)
706 SetErrorInfo(0, error);
707 IErrorInfo_Release(error);
710 TRACE("returning %08lx accessor %Ix\n", hr, *phAccessor);
711 return hr;
714 HRESULT __RPC_STUB IAccessor_CreateAccessor_Stub(IAccessor* This, DBACCESSORFLAGS dwAccessorFlags, DBCOUNTITEM cBindings,
715 DBBINDING *rgBindings, DBLENGTH cbRowSize, HACCESSOR *phAccessor,
716 DBBINDSTATUS *rgStatus, IErrorInfo **ppErrorInfoRem)
718 HRESULT hr;
720 TRACE("(%p)->(%08lx, %Id, %p, %Id, %p, %p, %p)\n", This, dwAccessorFlags, cBindings, rgBindings,
721 cbRowSize, phAccessor, rgStatus, ppErrorInfoRem);
723 *ppErrorInfoRem = NULL;
724 hr = IAccessor_CreateAccessor(This, dwAccessorFlags, cBindings, rgBindings,
725 cbRowSize, phAccessor, rgStatus);
726 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
728 return hr;
731 HRESULT CALLBACK IAccessor_GetBindings_Proxy(IAccessor* This, HACCESSOR hAccessor, DBACCESSORFLAGS *pdwAccessorFlags,
732 DBCOUNTITEM *pcBindings, DBBINDING **prgBindings)
734 FIXME("(%p): stub\n", This);
735 return E_NOTIMPL;
738 HRESULT __RPC_STUB IAccessor_GetBindings_Stub(IAccessor* This, HACCESSOR hAccessor, DBACCESSORFLAGS *pdwAccessorFlags,
739 DBCOUNTITEM *pcBindings, DBBINDING **prgBindings, IErrorInfo **ppErrorInfoRem)
741 FIXME("(%p): stub\n", This);
742 return E_NOTIMPL;
745 HRESULT CALLBACK IAccessor_ReleaseAccessor_Proxy(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *pcRefCount)
747 IErrorInfo *error = NULL;
748 HRESULT hr;
749 DBREFCOUNT ref;
751 TRACE("(%p)->(%Ix, %p)\n", This, hAccessor, pcRefCount);
753 hr = IAccessor_RemoteReleaseAccessor_Proxy(This, hAccessor, &ref, &error);
755 if(pcRefCount) *pcRefCount = ref;
756 if(error)
758 SetErrorInfo(0, error);
759 IErrorInfo_Release(error);
761 return hr;
764 HRESULT __RPC_STUB IAccessor_ReleaseAccessor_Stub(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *pcRefCount,
765 IErrorInfo **ppErrorInfoRem)
767 HRESULT hr;
769 TRACE("(%p)->(%Ix, %p, %p)\n", This, hAccessor, pcRefCount, ppErrorInfoRem);
771 *ppErrorInfoRem = NULL;
773 hr = IAccessor_ReleaseAccessor(This, hAccessor, pcRefCount);
775 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
776 return hr;
779 HRESULT CALLBACK IRowsetInfo_GetProperties_Proxy(IRowsetInfo* This, const ULONG cPropertyIDSets, const DBPROPIDSET rgPropertyIDSets[],
780 ULONG *pcPropertySets, DBPROPSET **prgPropertySets)
782 IErrorInfo *error = NULL;
783 HRESULT hr;
784 ULONG i;
786 TRACE("(%p)->(%ld, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets);
788 for(i = 0; i < cPropertyIDSets; i++)
790 unsigned int j;
791 TRACE("%ld: %s %ld props\n", i, debugstr_guid(&rgPropertyIDSets[i].guidPropertySet), rgPropertyIDSets[i].cPropertyIDs);
792 for(j = 0; j < rgPropertyIDSets[i].cPropertyIDs; j++)
793 TRACE("\t%u: prop id %ld\n", j, rgPropertyIDSets[i].rgPropertyIDs[j]);
796 hr = IRowsetInfo_RemoteGetProperties_Proxy(This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets, &error);
798 if(error)
800 SetErrorInfo(0, error);
801 IErrorInfo_Release(error);
803 return hr;
806 HRESULT __RPC_STUB IRowsetInfo_GetProperties_Stub(IRowsetInfo* This, ULONG cPropertyIDSets, const DBPROPIDSET *rgPropertyIDSets,
807 ULONG *pcPropertySets, DBPROPSET **prgPropertySets, IErrorInfo **ppErrorInfoRem)
809 HRESULT hr;
811 TRACE("(%p)->(%ld, %p, %p, %p, %p)\n", This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets, ppErrorInfoRem);
813 *ppErrorInfoRem = NULL;
815 hr = IRowsetInfo_GetProperties(This, cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets);
816 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
817 TRACE("returning %08lx\n", hr);
818 return hr;
821 HRESULT CALLBACK IRowsetInfo_GetReferencedRowset_Proxy(IRowsetInfo* This, DBORDINAL iOrdinal, REFIID riid, IUnknown **ppReferencedRowset)
823 IErrorInfo *error = NULL;
824 HRESULT hr;
826 TRACE("(%p)->(%Id, %s, %p)\n", This, iOrdinal, debugstr_guid(riid), ppReferencedRowset);
828 hr = IRowsetInfo_RemoteGetReferencedRowset_Proxy(This, iOrdinal, riid, ppReferencedRowset, &error);
829 if(error)
831 SetErrorInfo(0, error);
832 IErrorInfo_Release(error);
835 return hr;
838 HRESULT __RPC_STUB IRowsetInfo_GetReferencedRowset_Stub(IRowsetInfo* This, DBORDINAL iOrdinal, REFIID riid, IUnknown **ppReferencedRowset,
839 IErrorInfo **ppErrorInfoRem)
841 HRESULT hr;
843 TRACE("(%p)->(%Id, %s, %p, %p)\n", This, iOrdinal, debugstr_guid(riid), ppReferencedRowset, ppErrorInfoRem);
845 hr = IRowsetInfo_GetReferencedRowset(This, iOrdinal, riid, ppReferencedRowset);
846 if (FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
848 return hr;
851 HRESULT CALLBACK IRowsetInfo_GetSpecification_Proxy(IRowsetInfo* This, REFIID riid, IUnknown **ppSpecification)
853 IErrorInfo *error = NULL;
854 HRESULT hr;
856 TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), ppSpecification);
858 hr = IRowsetInfo_RemoteGetSpecification_Proxy(This, riid, ppSpecification, &error);
859 if(error)
861 SetErrorInfo(0, error);
862 IErrorInfo_Release(error);
865 return hr;
868 HRESULT __RPC_STUB IRowsetInfo_GetSpecification_Stub(IRowsetInfo* This, REFIID riid, IUnknown **ppSpecification, IErrorInfo **ppErrorInfoRem)
870 HRESULT hr;
872 TRACE("(%p)->(%s, %p, %p)\n", This, debugstr_guid(riid), ppSpecification, ppErrorInfoRem);
874 hr = IRowsetInfo_GetSpecification(This, riid, ppSpecification);
875 if (FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
877 return hr;
880 HRESULT CALLBACK ICommand_Cancel_Proxy(ICommand* This)
882 IErrorInfo *error = NULL;
883 HRESULT hr;
885 TRACE("(%p)\n", This);
887 hr = ICommand_RemoteCancel_Proxy(This, &error);
888 if(error)
890 SetErrorInfo(0, error);
891 IErrorInfo_Release(error);
894 return hr;
897 HRESULT __RPC_STUB ICommand_Cancel_Stub(ICommand* This, IErrorInfo **ppErrorInfoRem)
899 HRESULT hr;
901 TRACE("(%p)->(%p)\n", This, ppErrorInfoRem);
903 hr = ICommand_Cancel(This);
904 if (FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
906 return hr;
909 HRESULT CALLBACK ICommand_Execute_Proxy(ICommand* This, IUnknown *pUnkOuter, REFIID riid,
910 DBPARAMS *pParams, DBROWCOUNT *pcRowsAffected, IUnknown **ppRowset)
912 HRESULT hr;
913 DBROWCOUNT affected;
915 *ppRowset = NULL;
917 TRACE("(%p)->(%p, %s, %p, %p, %p)\n", This, pUnkOuter, debugstr_guid(riid), pParams,
918 pcRowsAffected, ppRowset);
920 if(pParams)
922 FIXME("Unhandled params {%p, %Id, %08Ix}\n", pParams->pData, pParams->cParamSets, pParams->hAccessor);
923 return E_NOTIMPL;
926 if(pUnkOuter)
928 FIXME("Aggregation not supported\n");
929 return CLASS_E_NOAGGREGATION;
932 hr = ICommand_RemoteExecute_Proxy(This, pUnkOuter, riid, 0, 0, NULL, 0, NULL, NULL, 0, NULL, NULL, &affected,
933 ppRowset);
935 TRACE("Execute returns %08lx\n", hr);
937 if(pcRowsAffected) *pcRowsAffected = affected;
939 return hr;
942 HRESULT __RPC_STUB ICommand_Execute_Stub(ICommand* This, IUnknown *pUnkOuter, REFIID riid, HACCESSOR hAccessor,
943 DB_UPARAMS cParamSets, GUID *pGuid, ULONG ulGuidOffset, RMTPACK *pInputParams,
944 RMTPACK *pOutputParams, DBCOUNTITEM cBindings, DBBINDING *rgBindings,
945 DBSTATUS *rgStatus, DBROWCOUNT *pcRowsAffected, IUnknown **ppRowset)
947 IWineRowServer *rowset_server;
948 IMarshal *marshal;
949 IUnknown *obj = NULL;
950 HRESULT hr;
952 TRACE("(%p)->(%p, %s, %08Ix, %Id, %p, %ld, %p, %p, %Id, %p, %p, %p, %p)\n", This, pUnkOuter, debugstr_guid(riid),
953 hAccessor, cParamSets, pGuid, ulGuidOffset, pInputParams, pOutputParams, cBindings, rgBindings, rgStatus,
954 pcRowsAffected, ppRowset);
956 *ppRowset = NULL;
958 hr = CoCreateInstance(&CLSID_wine_rowset_server, NULL, CLSCTX_INPROC_SERVER, &IID_IWineRowServer, (void**)&rowset_server);
959 if(FAILED(hr)) return hr;
961 IWineRowServer_GetMarshal(rowset_server, &marshal);
963 hr = ICommand_Execute(This, (IUnknown*)marshal, &IID_IUnknown, NULL, pcRowsAffected, &obj);
965 IMarshal_Release(marshal);
967 if(FAILED(hr))
969 IWineRowServer_Release(rowset_server);
970 return hr;
973 IWineRowServer_SetInnerUnk(rowset_server, obj);
974 hr = IUnknown_QueryInterface(obj, riid, (void**)ppRowset);
975 IUnknown_Release(obj);
977 return hr;
980 HRESULT CALLBACK ICommand_GetDBSession_Proxy(ICommand* This, REFIID riid, IUnknown **ppSession)
982 IErrorInfo *error = NULL;
983 HRESULT hr;
985 TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), ppSession);
987 hr = ICommand_RemoteGetDBSession_Proxy(This, riid, ppSession, &error);
988 if(error)
990 SetErrorInfo(0, error);
991 IErrorInfo_Release(error);
994 return hr;
997 HRESULT __RPC_STUB ICommand_GetDBSession_Stub(ICommand* This, REFIID riid, IUnknown **ppSession, IErrorInfo **ppErrorInfoRem)
999 HRESULT hr;
1001 TRACE("(%p)->(%s, %p, %p)\n", This, debugstr_guid(riid), ppSession, ppErrorInfoRem);
1003 hr = ICommand_GetDBSession(This, riid, ppSession);
1004 if (FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
1006 return hr;
1009 HRESULT CALLBACK ICommandText_GetCommandText_Proxy(ICommandText* This, GUID *pguidDialect, LPOLESTR *ppwszCommand)
1011 IErrorInfo *error = NULL;
1012 HRESULT hr;
1014 TRACE("(%p)->(%p, %p)\n", This, pguidDialect, ppwszCommand);
1016 hr = ICommandText_RemoteGetCommandText_Proxy(This, pguidDialect, ppwszCommand, &error);
1017 if(error)
1019 SetErrorInfo(0, error);
1020 IErrorInfo_Release(error);
1023 return hr;
1026 HRESULT __RPC_STUB ICommandText_GetCommandText_Stub(ICommandText* This, GUID *pguidDialect,
1027 LPOLESTR *ppwszCommand, IErrorInfo **ppErrorInfoRem)
1029 HRESULT hr;
1031 TRACE("(%p)->(%p, %p, %p)\n", This, pguidDialect, ppwszCommand, ppErrorInfoRem);
1033 hr = ICommandText_GetCommandText(This, pguidDialect, ppwszCommand);
1034 if (FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
1036 return hr;
1039 HRESULT CALLBACK ICommandText_SetCommandText_Proxy(ICommandText* This, REFGUID rguidDialect, LPCOLESTR pwszCommand)
1041 IErrorInfo *error = NULL;
1042 HRESULT hr;
1044 TRACE("(%p)->(%s, %s)\n", This, debugstr_guid(rguidDialect), debugstr_w(pwszCommand));
1046 hr = ICommandText_RemoteSetCommandText_Proxy(This, rguidDialect, pwszCommand, &error);
1047 if(error)
1049 SetErrorInfo(0, error);
1050 IErrorInfo_Release(error);
1052 return hr;
1055 HRESULT __RPC_STUB ICommandText_SetCommandText_Stub(ICommandText* This, REFGUID rguidDialect, LPCOLESTR pwszCommand,
1056 IErrorInfo **ppErrorInfoRem)
1058 HRESULT hr;
1060 TRACE("(%p)->(%s, %s, %p)\n", This, debugstr_guid(rguidDialect), debugstr_w(pwszCommand),
1061 ppErrorInfoRem);
1063 *ppErrorInfoRem = NULL;
1064 hr = ICommandText_SetCommandText(This, rguidDialect, pwszCommand);
1065 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
1067 return hr;
1070 HRESULT CALLBACK IDBAsynchNotify_OnLowResource_Proxy(IDBAsynchNotify* This, DB_DWRESERVE dwReserved)
1072 TRACE("(%p)->(%08Ix)\n", This, dwReserved);
1073 return IDBAsynchNotify_RemoteOnLowResource_Proxy(This, dwReserved);
1076 HRESULT __RPC_STUB IDBAsynchNotify_OnLowResource_Stub(IDBAsynchNotify* This, DB_DWRESERVE dwReserved)
1078 TRACE("(%p)->(%08Ix)\n", This, dwReserved);
1079 return IDBAsynchNotify_OnLowResource(This, dwReserved);
1082 HRESULT CALLBACK IDBAsynchNotify_OnProgress_Proxy(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1083 DBCOUNTITEM ulProgress, DBCOUNTITEM ulProgressMax, DBASYNCHPHASE eAsynchPhase,
1084 LPOLESTR pwszStatusText)
1086 TRACE("(%p)->(%Ix, %ld, %Id, %Id, %ld, %s)\n", This, hChapter, eOperation, ulProgress, ulProgressMax,
1087 eAsynchPhase, debugstr_w(pwszStatusText));
1089 return IDBAsynchNotify_RemoteOnProgress_Proxy(This, hChapter, eOperation, ulProgress, ulProgressMax, eAsynchPhase,
1090 pwszStatusText);
1093 HRESULT __RPC_STUB IDBAsynchNotify_OnProgress_Stub(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1094 DBCOUNTITEM ulProgress, DBCOUNTITEM ulProgressMax, DBASYNCHPHASE eAsynchPhase,
1095 LPOLESTR pwszStatusText)
1097 TRACE("(%p)->(%Ix, %ld, %Id, %Id, %ld, %s)\n", This, hChapter, eOperation, ulProgress, ulProgressMax,
1098 eAsynchPhase, debugstr_w(pwszStatusText));
1099 return IDBAsynchNotify_OnProgress(This, hChapter, eOperation, ulProgress, ulProgressMax, eAsynchPhase,
1100 pwszStatusText);
1103 HRESULT CALLBACK IDBAsynchNotify_OnStop_Proxy(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1104 HRESULT hrStatus, LPOLESTR pwszStatusText)
1106 TRACE("(%p)->(%Ix, %ld, %08lx, %s)\n", This, hChapter, eOperation, hrStatus, debugstr_w(pwszStatusText));
1107 return IDBAsynchNotify_RemoteOnStop_Proxy(This, hChapter, eOperation, hrStatus, pwszStatusText);
1110 HRESULT __RPC_STUB IDBAsynchNotify_OnStop_Stub(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1111 HRESULT hrStatus, LPOLESTR pwszStatusText)
1113 TRACE("(%p)->(%Ix, %ld, %08lx, %s)\n", This, hChapter, eOperation, hrStatus, debugstr_w(pwszStatusText));
1114 return IDBAsynchNotify_OnStop(This, hChapter, eOperation, hrStatus, pwszStatusText);
1117 HRESULT CALLBACK IDBAsynchStatus_Abort_Proxy(IDBAsynchStatus* This, HCHAPTER hChapter, DBASYNCHOP eOperation)
1119 IErrorInfo *error = NULL;
1120 HRESULT hr;
1122 TRACE("(%p)->(%Ix, %ld)\n", This, hChapter, eOperation);
1124 hr = IDBAsynchStatus_RemoteAbort_Proxy(This, hChapter, eOperation, &error);
1125 if(error)
1127 SetErrorInfo(0, error);
1128 IErrorInfo_Release(error);
1130 return hr;
1133 HRESULT __RPC_STUB IDBAsynchStatus_Abort_Stub(IDBAsynchStatus* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1134 IErrorInfo **ppErrorInfoRem)
1136 HRESULT hr;
1138 TRACE("(%p)->(%Ix, %ld, %p)\n", This, hChapter, eOperation, ppErrorInfoRem);
1140 *ppErrorInfoRem = NULL;
1141 hr = IDBAsynchStatus_Abort(This, hChapter, eOperation);
1142 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
1144 return hr;
1147 HRESULT CALLBACK IDBAsynchStatus_GetStatus_Proxy(IDBAsynchStatus* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1148 DBCOUNTITEM *pulProgress, DBCOUNTITEM *pulProgressMax, DBASYNCHPHASE *peAsynchPhase,
1149 LPOLESTR *ppwszStatusText)
1151 IErrorInfo *error = NULL;
1152 HRESULT hr;
1154 TRACE("(%p)->(%Ix, %ld, %p, %p, %p, %p)\n", This, hChapter, eOperation, pulProgress, pulProgressMax,
1155 peAsynchPhase, ppwszStatusText);
1157 hr = IDBAsynchStatus_RemoteGetStatus_Proxy(This, hChapter, eOperation, pulProgress, pulProgressMax, peAsynchPhase,
1158 ppwszStatusText, &error);
1159 if(error)
1161 SetErrorInfo(0, error);
1162 IErrorInfo_Release(error);
1164 return hr;
1167 HRESULT __RPC_STUB IDBAsynchStatus_GetStatus_Stub(IDBAsynchStatus* This, HCHAPTER hChapter, DBASYNCHOP eOperation,
1168 DBCOUNTITEM *pulProgress, DBCOUNTITEM *pulProgressMax, DBASYNCHPHASE *peAsynchPhase,
1169 LPOLESTR *ppwszStatusText, IErrorInfo **ppErrorInfoRem)
1171 HRESULT hr;
1173 TRACE("(%p)->(%Ix, %ld, %p, %p, %p, %p, %p)\n", This, hChapter, eOperation, pulProgress, pulProgressMax,
1174 peAsynchPhase, ppwszStatusText, ppErrorInfoRem);
1176 *ppErrorInfoRem = NULL;
1177 hr = IDBAsynchStatus_GetStatus(This, hChapter, eOperation, pulProgress, pulProgressMax, peAsynchPhase, ppwszStatusText);
1178 if(FAILED(hr)) GetErrorInfo(0, ppErrorInfoRem);
1180 return hr;
1183 HRESULT CALLBACK IRowsetNotify_OnRowChange_Proxy(IRowsetNotify* This, IRowset *rowset, DBCOUNTITEM rows, HROW *hrows, DBREASON reason,
1184 DBEVENTPHASE phase, BOOL cantdeny)
1186 TRACE("(%p)->(%p %Id %p %ld %ld %d)\n", This, rowset, rows, hrows, reason, phase, cantdeny);
1187 return IRowsetNotify_RemoteOnRowChange_Proxy(This, rowset, rows, hrows, reason, phase, cantdeny);
1190 HRESULT __RPC_STUB IRowsetNotify_OnRowChange_Stub(IRowsetNotify* This, IRowset *rowset, DBCOUNTITEM rows, HROW *hrows, DBREASON reason,
1191 DBEVENTPHASE phase, BOOL cantdeny)
1193 TRACE("(%p)->(%p %Id %p %ld %ld %d)\n", This, rowset, rows, hrows, reason, phase, cantdeny);
1194 return IRowsetNotify_OnRowChange(This, rowset, rows, hrows, reason, phase, cantdeny);
1197 HRESULT CALLBACK IRowsetNotify_OnFieldChange_Proxy(IRowsetNotify* This, IRowset *rowset, HROW row, DBORDINAL ccols, DBORDINAL *columns,
1198 DBREASON reason, DBEVENTPHASE phase, BOOL cantdeny)
1200 TRACE("(%p)->(%p %Ix %Id %p %ld %ld %d)\n", This, rowset, row, ccols, columns, reason, phase, cantdeny);
1201 return IRowsetNotify_RemoteOnFieldChange_Proxy(This, rowset, row, ccols, columns, reason, phase, cantdeny);
1204 HRESULT __RPC_STUB IRowsetNotify_OnFieldChange_Stub(IRowsetNotify* This, IRowset *rowset, HROW row, DBORDINAL ccols, DBORDINAL *columns,
1205 DBREASON reason, DBEVENTPHASE phase, BOOL cantdeny)
1207 TRACE("(%p)->(%p %Ix %Id %p %ld %ld %d)\n", This, rowset, row, ccols, columns, reason, phase, cantdeny);
1208 return IRowsetNotify_OnFieldChange(This, rowset, row, ccols, columns, reason, phase, cantdeny);
1211 HRESULT CALLBACK IRowsetNotify_OnRowsetChange_Proxy(IRowsetNotify* This, IRowset *rowset, DBREASON reason, DBEVENTPHASE phase, BOOL cantdeny)
1213 TRACE("(%p)->(%p %ld %ld %d)\n", This, rowset, reason, phase, cantdeny);
1214 return IRowsetNotify_RemoteOnRowsetChange_Proxy(This, rowset, reason, phase, cantdeny);
1217 HRESULT __RPC_STUB IRowsetNotify_OnRowsetChange_Stub(IRowsetNotify* This, IRowset *rowset, DBREASON reason, DBEVENTPHASE phase, BOOL cantdeny)
1219 TRACE("(%p)->(%p %ld %ld %d)\n", This, rowset, reason, phase, cantdeny);
1220 return IRowsetNotify_OnRowsetChange(This, rowset, reason, phase, cantdeny);
1224 HRESULT CALLBACK ISourcesRowset_GetSourcesRowset_Proxy(ISourcesRowset* This, IUnknown *pUnkOuter, REFIID riid, ULONG cPropertySets,
1225 DBPROPSET rgProperties[], IUnknown **ppSourcesRowset)
1227 IErrorInfo *error = NULL;
1228 HRESULT hr;
1230 TRACE("(%p)->(%p %s %ld %p %p)\n", This, pUnkOuter, debugstr_guid(riid), cPropertySets, rgProperties, ppSourcesRowset);
1232 hr = ISourcesRowset_RemoteGetSourcesRowset_Proxy(This, pUnkOuter, riid, cPropertySets, rgProperties, ppSourcesRowset, 0, NULL, &error);
1233 if(error)
1235 SetErrorInfo(0, error);
1236 IErrorInfo_Release(error);
1239 return hr;
1242 HRESULT __RPC_STUB ISourcesRowset_GetSourcesRowset_Stub(ISourcesRowset* This, IUnknown *pUnkOuter, REFIID riid, ULONG cPropertySets,
1243 DBPROPSET *rgProperties, IUnknown **ppSourcesRowset, ULONG cTotalProps, DBPROPSTATUS *rgPropStatus,
1244 IErrorInfo **ppErrorInfoRem)
1246 HRESULT hr;
1248 TRACE("(%p)->(%p %s %ld %p %p %ld %p %p)\n", This, pUnkOuter, debugstr_guid(riid), cPropertySets, rgProperties, ppSourcesRowset,
1249 cTotalProps, rgPropStatus, ppErrorInfoRem);
1251 *ppErrorInfoRem = NULL;
1252 hr = ISourcesRowset_GetSourcesRowset(This, pUnkOuter, riid, cPropertySets, rgProperties, ppSourcesRowset);
1253 if(FAILED(hr))
1254 GetErrorInfo(0, ppErrorInfoRem);
1256 return hr;
1259 HRESULT CALLBACK IErrorRecords_GetRecordCount_Proxy(IErrorRecords* This, ULONG *records)
1261 IErrorInfo *error = NULL;
1262 HRESULT hr;
1264 TRACE("(%p)->%p\n", This, records);
1266 hr = IErrorRecords_RemoteGetRecordCount_Proxy(This, records, &error);
1267 if(error)
1269 SetErrorInfo(0, error);
1270 IErrorInfo_Release(error);
1273 return hr;
1276 HRESULT __RPC_STUB IErrorRecords_GetRecordCount_Stub(IErrorRecords* This, ULONG *pcRecords, IErrorInfo **ppErrorInfoRem)
1278 HRESULT hr;
1280 TRACE("(%p)->%p %p\n", This, pcRecords, ppErrorInfoRem);
1282 *ppErrorInfoRem = NULL;
1283 hr = IErrorRecords_GetRecordCount(This, pcRecords);
1284 if(FAILED(hr))
1285 GetErrorInfo(0, ppErrorInfoRem);
1287 return hr;
1290 HRESULT CALLBACK IErrorRecords_GetErrorParameters_Proxy(IErrorRecords* This, ULONG ulRecordNum, DISPPARAMS *pdispparams)
1292 IErrorInfo *error = NULL;
1293 HRESULT hr;
1295 TRACE("(%p)->%ld %p\n", This, ulRecordNum, pdispparams);
1297 hr = IErrorRecords_RemoteGetErrorParameters_Proxy(This, ulRecordNum, pdispparams, &error);
1298 if(error)
1300 SetErrorInfo(0, error);
1301 IErrorInfo_Release(error);
1304 return hr;
1307 HRESULT __RPC_STUB IErrorRecords_GetErrorParameters_Stub(IErrorRecords* This, ULONG ulRecordNum, DISPPARAMS *pdispparams,
1308 IErrorInfo **ppErrorInfoRem)
1310 HRESULT hr;
1312 TRACE("(%p)->%ld %p %p\n", This, ulRecordNum, pdispparams, ppErrorInfoRem);
1314 *ppErrorInfoRem = NULL;
1315 hr = IErrorRecords_GetErrorParameters(This, ulRecordNum, pdispparams);
1316 if(FAILED(hr))
1317 GetErrorInfo(0, ppErrorInfoRem);
1319 return hr;
1322 HRESULT CALLBACK IErrorRecords_GetErrorInfo_Proxy(IErrorRecords* This, ULONG ulRecordNum, LCID lcid, IErrorInfo **ppErrorInfo)
1324 IErrorInfo *error = NULL;
1325 HRESULT hr;
1327 TRACE("(%p)->%ld %ld %p\n", This, ulRecordNum, lcid, ppErrorInfo);
1329 hr = IErrorRecords_RemoteGetErrorInfo_Proxy(This, ulRecordNum, lcid, ppErrorInfo, &error);
1330 if(error)
1332 SetErrorInfo(0, error);
1333 IErrorInfo_Release(error);
1336 return hr;
1339 HRESULT __RPC_STUB IErrorRecords_GetErrorInfo_Stub(IErrorRecords* This, ULONG ulRecordNum, LCID lcid,
1340 IErrorInfo **ppErrorInfo, IErrorInfo **ppErrorInfoRem)
1342 HRESULT hr;
1344 TRACE("(%p)->%ld %ld %p %p\n", This, ulRecordNum, lcid, ppErrorInfo, ppErrorInfoRem);
1346 *ppErrorInfoRem = NULL;
1347 hr = IErrorRecords_GetErrorInfo(This, ulRecordNum, lcid, ppErrorInfo);
1348 if(FAILED(hr))
1349 GetErrorInfo(0, ppErrorInfoRem);
1351 return hr;
1354 HRESULT CALLBACK IErrorRecords_GetCustomErrorObject_Proxy(IErrorRecords* This, ULONG ulRecordNum, REFIID riid,
1355 IUnknown **ppObject)
1357 IErrorInfo *error = NULL;
1358 HRESULT hr;
1360 TRACE("(%p)->%ld %s %p\n", This, ulRecordNum, debugstr_guid(riid), ppObject);
1362 hr = IErrorRecords_RemoteGetCustomErrorObject_Proxy(This, ulRecordNum, riid, ppObject, &error);
1363 if(error)
1365 SetErrorInfo(0, error);
1366 IErrorInfo_Release(error);
1368 return hr;
1371 HRESULT __RPC_STUB IErrorRecords_GetCustomErrorObject_Stub(IErrorRecords* This, ULONG ulRecordNum, REFIID riid,
1372 IUnknown **ppObject, IErrorInfo **ppErrorInfoRem)
1374 HRESULT hr;
1376 TRACE("(%p)->%ld %s %p %p\n", This, ulRecordNum, debugstr_guid(riid), ppObject, ppErrorInfoRem);
1378 *ppErrorInfoRem = NULL;
1379 hr = IErrorRecords_GetCustomErrorObject(This, ulRecordNum, riid, ppObject);
1380 if(FAILED(hr))
1381 GetErrorInfo(0, ppErrorInfoRem);
1383 return hr;
1386 HRESULT CALLBACK IErrorRecords_GetBasicErrorInfo_Proxy(IErrorRecords* This, ULONG ulRecordNum, ERRORINFO *pErrorInfo)
1388 IErrorInfo *error = NULL;
1389 HRESULT hr;
1391 TRACE("(%p)->%ld %p\n", This, ulRecordNum, pErrorInfo);
1393 hr = IErrorRecords_RemoteGetBasicErrorInfo_Proxy(This, ulRecordNum, pErrorInfo, &error);
1394 if(error)
1396 SetErrorInfo(0, error);
1397 IErrorInfo_Release(error);
1400 return hr;
1403 HRESULT __RPC_STUB IErrorRecords_GetBasicErrorInfo_Stub(IErrorRecords* This, ULONG ulRecordNum, ERRORINFO *pErrorInfo,
1404 IErrorInfo **ppErrorInfoRem)
1406 HRESULT hr;
1408 TRACE("(%p)->%ld %p %p\n", This, ulRecordNum, pErrorInfo, ppErrorInfoRem);
1410 *ppErrorInfoRem = NULL;
1411 hr = IErrorRecords_GetBasicErrorInfo(This, ulRecordNum, pErrorInfo);
1412 if(FAILED(hr))
1413 GetErrorInfo(0, ppErrorInfoRem);
1415 return hr;
1418 HRESULT CALLBACK IErrorRecords_AddErrorRecord_Proxy(IErrorRecords* This, ERRORINFO *pErrorInfo, DWORD dwLookupID,
1419 DISPPARAMS *pdispparams, IUnknown *punkCustomError, DWORD dwDynamicErrorID)
1421 IErrorInfo *error = NULL;
1422 HRESULT hr;
1424 TRACE("(%p)->%p %ld %p %p %ld\n", This, pErrorInfo, dwLookupID, pdispparams, punkCustomError, dwDynamicErrorID);
1426 hr = IErrorRecords_RemoteAddErrorRecord_Proxy(This, pErrorInfo, dwLookupID, pdispparams, punkCustomError,
1427 dwDynamicErrorID, &error);
1428 if(error)
1430 SetErrorInfo(0, error);
1431 IErrorInfo_Release(error);
1433 return hr;
1436 HRESULT __RPC_STUB IErrorRecords_AddErrorRecord_Stub(IErrorRecords* This, ERRORINFO *pErrorInfo, DWORD dwLookupID,
1437 DISPPARAMS *pdispparams, IUnknown *punkCustomError, DWORD dwDynamicErrorID, IErrorInfo **ppErrorInfoRem)
1439 HRESULT hr;
1441 TRACE("(%p)->%p %ld %p %p %ld %p\n", This, pErrorInfo, dwLookupID, pdispparams, punkCustomError,
1442 dwDynamicErrorID, ppErrorInfoRem);
1444 *ppErrorInfoRem = NULL;
1445 hr = IErrorRecords_AddErrorRecord(This, pErrorInfo, dwLookupID, pdispparams, punkCustomError, dwDynamicErrorID);
1446 if(FAILED(hr))
1447 GetErrorInfo(0, ppErrorInfoRem);
1449 return hr;
1452 HRESULT __RPC_STUB IRowPosition_Initialize_Stub(IRowPosition* This, IUnknown *rowset, IErrorInfo **errorinfo)
1454 FIXME("(%p)->(%p %p): stub\n", This, rowset, errorinfo);
1455 return E_NOTIMPL;
1458 HRESULT __RPC_STUB IRowPosition_SetRowPosition_Stub(IRowPosition* This, HCHAPTER chapter, HROW row, DBPOSITIONFLAGS flags, IErrorInfo **errorinfo)
1460 FIXME("(%p)->(%Ix %Ix %ld %p): stub\n", This, chapter, row, flags, errorinfo);
1461 return E_NOTIMPL;
1464 HRESULT __RPC_STUB IRowPosition_GetRowset_Stub(IRowPosition* This, REFIID riid, IUnknown **rowset, IErrorInfo **errorinfo)
1466 FIXME("(%p)->(%s %p %p): stub\n", This, debugstr_guid(riid), rowset, errorinfo);
1467 return E_NOTIMPL;
1470 HRESULT __RPC_STUB IRowPosition_GetRowPosition_Stub(IRowPosition* This, HCHAPTER *chapter, HROW *row, DBPOSITIONFLAGS *flags, IErrorInfo **errorinfo)
1472 FIXME("(%p)->(%p %p %p %p): stub\n", This, chapter, row, flags, errorinfo);
1473 return E_NOTIMPL;
1476 HRESULT __RPC_STUB IRowPosition_ClearRowPosition_Stub(IRowPosition* This, IErrorInfo **errorinfo)
1478 FIXME("(%p)->(%p): stub\n", This, errorinfo);
1479 return E_NOTIMPL;
1482 HRESULT CALLBACK IRowPosition_ClearRowPosition_Proxy(IRowPosition* This)
1484 FIXME("(%p): stub\n", This);
1485 return E_NOTIMPL;
1488 HRESULT CALLBACK IRowPosition_GetRowPosition_Proxy(IRowPosition* This, HCHAPTER *chapter, HROW *row, DBPOSITIONFLAGS *flags)
1490 FIXME("(%p)->(%p %p %p): stub\n", This, chapter, row, flags);
1491 return E_NOTIMPL;
1494 HRESULT CALLBACK IRowPosition_GetRowset_Proxy(IRowPosition* This, REFIID riid, IUnknown **rowset)
1496 FIXME("(%p)->(%s %p): stub\n", This, debugstr_guid(riid), rowset);
1497 return E_NOTIMPL;
1500 HRESULT CALLBACK IRowPosition_Initialize_Proxy(IRowPosition* This, IUnknown *rowset)
1502 FIXME("(%p)->(%p): stub\n", This, rowset);
1503 return E_NOTIMPL;
1506 HRESULT CALLBACK IRowPosition_SetRowPosition_Proxy(IRowPosition* This, HCHAPTER chapter, HROW row, DBPOSITIONFLAGS flags)
1508 FIXME("(%p)->(%Ix %Ix %ld): stub\n", This, chapter, row, flags);
1509 return E_NOTIMPL;
1512 HRESULT __RPC_STUB IRowPositionChange_OnRowPositionChange_Stub(IRowPositionChange* This, DBREASON reason, DBEVENTPHASE phase,
1513 BOOL cant_deny, IErrorInfo **errorinfo)
1515 FIXME("(%p)->(0x%lx 0x%lx %d %p): stub\n", This, reason, phase, cant_deny, errorinfo);
1516 return E_NOTIMPL;
1519 HRESULT CALLBACK IRowPositionChange_OnRowPositionChange_Proxy(IRowPositionChange* This, DBREASON reason, DBEVENTPHASE phase,
1520 BOOL cant_deny)
1522 FIXME("(%p)->(0x%lx 0x%lx %d): stub\n", This, reason, phase, cant_deny);
1523 return E_NOTIMPL;
1526 HRESULT __RPC_STUB IChapteredRowset_ReleaseChapter_Stub(IChapteredRowset* This, HCHAPTER chapter, DBREFCOUNT *refcount, IErrorInfo **errorinfo)
1528 FIXME("(%p)->(%Ix %p %p): stub\n", This, chapter, refcount, errorinfo);
1529 return E_NOTIMPL;
1532 HRESULT __RPC_STUB IChapteredRowset_AddRefChapter_Stub(IChapteredRowset* This, HCHAPTER chapter, DBREFCOUNT *refcount, IErrorInfo **errorinfo)
1534 FIXME("(%p)->(%Ix %p %p): stub\n", This, chapter, refcount, errorinfo);
1535 return E_NOTIMPL;
1538 HRESULT CALLBACK IChapteredRowset_AddRefChapter_Proxy(IChapteredRowset* This, HCHAPTER chapter, DBREFCOUNT *refcount)
1540 FIXME("(%p)->(%Ix %p): stub\n", This, chapter, refcount);
1541 return E_NOTIMPL;
1544 HRESULT CALLBACK IChapteredRowset_ReleaseChapter_Proxy(IChapteredRowset* This, HCHAPTER chapter, DBREFCOUNT *refcount)
1546 FIXME("(%p)->(%Ix %p): stub\n", This, chapter, refcount);
1547 return E_NOTIMPL;
1550 HRESULT CALLBACK IColumnsInfo_GetColumnInfo_Proxy(IColumnsInfo* This, DBORDINAL *columns,
1551 DBCOLUMNINFO **colinfo, OLECHAR **stringsbuffer)
1553 FIXME("(%p)->(%p %p %p): stub\n", This, columns, colinfo, stringsbuffer);
1554 return E_NOTIMPL;
1557 HRESULT __RPC_STUB IColumnsInfo_GetColumnInfo_Stub(IColumnsInfo* This, DBORDINAL *columns, DBCOLUMNINFO **col_info,
1558 DBBYTEOFFSET **name_offsets, DBBYTEOFFSET **columnid_offsets, DBLENGTH *string_len, OLECHAR **stringsbuffer,
1559 IErrorInfo **error)
1561 FIXME("(%p)->(%p %p %p %p %p %p %p): stub\n", This, columns, col_info, name_offsets, columnid_offsets,
1562 string_len, stringsbuffer, error);
1563 return E_NOTIMPL;
1566 HRESULT CALLBACK IColumnsInfo_MapColumnIDs_Proxy(IColumnsInfo* This, DBORDINAL column_ids, const DBID *dbids,
1567 DBORDINAL *columns)
1569 FIXME("(%p)->(%Iu %p %p): stub\n", This, column_ids, dbids, columns);
1570 return E_NOTIMPL;
1573 HRESULT __RPC_STUB IColumnsInfo_MapColumnIDs_Stub(IColumnsInfo* This, DBORDINAL column_ids, const DBID *dbids,
1574 DBORDINAL *columns, IErrorInfo **error)
1576 FIXME("(%p)->(%Iu %p %p %p): stub\n", This, column_ids, dbids, columns, error);
1577 return E_NOTIMPL;
1580 HRESULT CALLBACK IGetDataSource_GetDataSource_Proxy(IGetDataSource* This, REFIID riid, IUnknown **datasource)
1582 FIXME("(%p)->(%s %p): stub\n", This, debugstr_guid(riid), datasource);
1583 return E_NOTIMPL;
1586 HRESULT CALLBACK IColumnsRowset_GetAvailableColumns_Proxy(IColumnsRowset* This, DBORDINAL *count, DBID **columns)
1588 FIXME("(%p)->(%p %p): stub\n", This, count, columns);
1589 return E_NOTIMPL;
1592 HRESULT __RPC_STUB IColumnsRowset_GetAvailableColumns_Stub(IColumnsRowset* This, DBORDINAL *count, DBID **columns,
1593 IErrorInfo **error)
1595 FIXME("(%p)->(%p %p %p): stub\n", This, count, columns, error);
1596 return E_NOTIMPL;
1599 HRESULT CALLBACK IColumnsRowset_GetColumnsRowset_Proxy(IColumnsRowset* This, IUnknown *outer, DBORDINAL count,
1600 const DBID columns[], REFIID riid, ULONG property_cnt, DBPROPSET property_sets[], IUnknown **rowset)
1602 FIXME("(%p)->(%p %Id %p %s %ld %p %p): stub\n", This, outer, count, columns, debugstr_guid(riid),
1603 property_cnt, property_sets, rowset);
1604 return E_NOTIMPL;
1607 HRESULT __RPC_STUB IColumnsRowset_GetColumnsRowset_Stub(IColumnsRowset* This, IUnknown *outer,
1608 DBORDINAL count, const DBID *columns, REFIID riid, ULONG property_cnt, DBPROPSET *property_sets,
1609 IUnknown **rowset, ULONG props_cnt, DBPROPSTATUS *prop_status, IErrorInfo **error)
1611 FIXME("(%p)->(%p %Id %p %s %ld %p %p %lu %p %p): stub\n", This, outer, count, columns, debugstr_guid(riid),
1612 property_cnt, property_sets, rowset, props_cnt, prop_status, error);
1613 return E_NOTIMPL;
1616 HRESULT __RPC_STUB IGetDataSource_GetDataSource_Stub(IGetDataSource* This, REFIID riid, IUnknown **datasource,
1617 IErrorInfo **error)
1619 FIXME("(%p)->(%s %p %p): stub\n", This, debugstr_guid(riid), datasource, error);
1620 return E_NOTIMPL;
1623 HRESULT CALLBACK ICommandProperties_GetProperties_Proxy(ICommandProperties* This, const ULONG count,
1624 const DBPROPIDSET propertyidsets[], ULONG *sets_cnt, DBPROPSET **propertyset)
1626 FIXME("(%p)->(%ld %p %p %p): stub\n", This, count, propertyidsets, sets_cnt, propertyset);
1627 return E_NOTIMPL;
1630 HRESULT __RPC_STUB ICommandProperties_GetProperties_Stub(ICommandProperties* This, const ULONG count,
1631 const DBPROPIDSET *propertyidsets, ULONG *sets_cnt, DBPROPSET **propertyset, IErrorInfo **error)
1633 FIXME("(%p)->(%ld %p %p %p %p): stub\n", This, count, propertyidsets, sets_cnt, propertyset, error);
1634 return E_NOTIMPL;
1637 HRESULT CALLBACK ICommandProperties_SetProperties_Proxy(ICommandProperties* This, ULONG count, DBPROPSET propertyset[])
1639 FIXME("(%p)->(%ld %p): stub\n", This, count, propertyset);
1640 return E_NOTIMPL;
1643 HRESULT __RPC_STUB ICommandProperties_SetProperties_Stub(ICommandProperties* This, ULONG count,
1644 DBPROPSET *propertyset, ULONG total, DBPROPSTATUS *propstatus, IErrorInfo **error)
1646 FIXME("(%p)->(%ld %p %ld %p %p): stub\n", This, count, propertyset, total, propstatus, error);
1647 return E_NOTIMPL;
1650 HRESULT CALLBACK IConvertType_CanConvert_Proxy(IConvertType* This, DBTYPE from, DBTYPE to, DBCONVERTFLAGS flags)
1652 FIXME("(%p)->(%d %d 0x%08lx): stub\n", This, from, to, flags);
1653 return E_NOTIMPL;
1656 HRESULT __RPC_STUB IConvertType_CanConvert_Stub(IConvertType* This, DBTYPE from, DBTYPE to,
1657 DBCONVERTFLAGS flags, IErrorInfo **error)
1659 FIXME("(%p)->(%d %d 0x%08lx %p): stub\n", This, from, to, flags, error);
1660 return E_NOTIMPL;
1663 HRESULT __RPC_STUB IMultipleResults_GetResult_Stub(IMultipleResults* This, IUnknown *outer,
1664 DBRESULTFLAG result, REFIID riid, DBROWCOUNT *affected, IUnknown **rowset, IErrorInfo **error)
1666 FIXME("(%p)->(%p %Id %s %p %p %p): stub\n", This, outer, result, debugstr_guid(riid), affected, rowset, error);
1667 return E_NOTIMPL;
1670 HRESULT CALLBACK IMultipleResults_GetResult_Proxy(IMultipleResults* This, IUnknown *outer,
1671 DBRESULTFLAG result, REFIID riid, DBROWCOUNT *affected, IUnknown **rowset)
1673 FIXME("(%p)->(%p %Id %s %p %p): stub\n", This, outer, result, debugstr_guid(riid), affected, rowset);
1674 return E_NOTIMPL;
1677 HRESULT CALLBACK ICommandPrepare_Prepare_Proxy(ICommandPrepare* This, ULONG runs)
1679 FIXME("(%p)->(%ld): stub\n", This, runs);
1680 return E_NOTIMPL;
1683 HRESULT __RPC_STUB ICommandPrepare_Prepare_Stub(ICommandPrepare* This, ULONG runs, IErrorInfo **error)
1685 FIXME("(%p)->(%ld %p): stub\n", This, runs, error);
1686 return E_NOTIMPL;
1689 HRESULT CALLBACK ICommandPrepare_Unprepare_Proxy(ICommandPrepare* This)
1691 FIXME("(%p)->(): stub\n", This);
1692 return E_NOTIMPL;
1695 HRESULT __RPC_STUB ICommandPrepare_Unprepare_Stub(ICommandPrepare* This, IErrorInfo **error)
1697 FIXME("(%p)->(%p): stub\n", This, error);
1698 return E_NOTIMPL;
1701 HRESULT CALLBACK ICommandWithParameters_GetParameterInfo_Proxy(ICommandWithParameters* This,
1702 DB_UPARAMS *uparams, DBPARAMINFO **info, OLECHAR **buffer)
1704 FIXME("(%p)->(%p %p %p): stub\n", This, uparams, info, buffer);
1705 return E_NOTIMPL;
1708 HRESULT __RPC_STUB ICommandWithParameters_GetParameterInfo_Stub(ICommandWithParameters* This,
1709 DB_UPARAMS *uparams, DBPARAMINFO **param_info, DBBYTEOFFSET **offsets, DBLENGTH *buff_len,
1710 OLECHAR **buffer, IErrorInfo **error)
1712 FIXME("(%p)->(%p %p %p %p %p %p %p): stub\n", This, uparams, param_info, buffer, offsets, buff_len,
1713 buffer, error);
1714 return E_NOTIMPL;
1717 HRESULT CALLBACK ICommandWithParameters_SetParameterInfo_Proxy(ICommandWithParameters* This,
1718 DB_UPARAMS params, const DB_UPARAMS ordinals[], const DBPARAMBINDINFO bindinfo[])
1720 FIXME("(%p)->(%Id %p %p): stub\n", This, params, ordinals, bindinfo);
1721 return E_NOTIMPL;
1724 HRESULT __RPC_STUB ICommandWithParameters_SetParameterInfo_Stub(ICommandWithParameters* This,
1725 DB_UPARAMS params, const DB_UPARAMS *ordinals, const DBPARAMBINDINFO *bindinfo, IErrorInfo **error)
1727 FIXME("(%p)->(%Id %p %p %p): stub\n", This, params, ordinals, bindinfo, error);
1728 return E_NOTIMPL;
1731 HRESULT CALLBACK ICommandWithParameters_MapParameterNames_Proxy(ICommandWithParameters* This,
1732 DB_UPARAMS count, LPCWSTR names[], DB_LPARAMS ordinals[])
1734 FIXME("(%p)->(%Id %p %p): stub\n", This, count, names, ordinals);
1735 return E_NOTIMPL;
1738 HRESULT __RPC_STUB ICommandWithParameters_MapParameterNames_Stub(ICommandWithParameters* This,
1739 DB_UPARAMS count, LPCOLESTR *names, DB_LPARAMS *ordinals, IErrorInfo **error)
1741 FIXME("(%p)->(%Id %p %p %p): stub\n", This, count, names, ordinals, error);
1742 return E_NOTIMPL;
1745 HRESULT __RPC_STUB ITransactionJoin_GetOptionsObject_Stub(ITransactionJoin* This,
1746 ITransactionOptions **options, IErrorInfo **error)
1748 FIXME("(%p)->(%p, %p): stub\n", This, options, error);
1749 return E_NOTIMPL;
1752 HRESULT CALLBACK ITransactionJoin_GetOptionsObject_Proxy(ITransactionJoin *This,
1753 ITransactionOptions **options)
1755 FIXME("(%p)->(%p): stub\n", This, options);
1756 return E_NOTIMPL;
1759 HRESULT __RPC_STUB ITransactionJoin_JoinTransaction_Stub(ITransactionJoin* This, IUnknown *unk,
1760 ISOLEVEL level, ULONG flags, ITransactionOptions *options, IErrorInfo **error)
1762 FIXME("(%p)->(%p, %ld, 0x%08lx, %p, %p): stub\n", This, unk, level, flags, options, error);
1763 return E_NOTIMPL;
1766 HRESULT CALLBACK ITransactionJoin_JoinTransaction_Proxy(ITransactionJoin* This, IUnknown *unk,
1767 ISOLEVEL level, ULONG flags, ITransactionOptions *options)
1769 FIXME("(%p)->(%p, %ld, 0x%08lx, %p): stub\n", This, unk, level, flags, options);
1770 return E_NOTIMPL;
1773 HRESULT __RPC_STUB ITransactionLocal_GetOptionsObject_Stub(ITransactionLocal* This,
1774 ITransactionOptions **options, IErrorInfo **info)
1776 FIXME("(%p)->(%p, %p): stub\n", This, options, info);
1777 return E_NOTIMPL;
1780 HRESULT CALLBACK ITransactionLocal_GetOptionsObject_Proxy(ITransactionLocal* This, ITransactionOptions **options)
1782 FIXME("(%p)->(%p): stub\n", This, options);
1783 return E_NOTIMPL;
1786 HRESULT CALLBACK ITransactionLocal_StartTransaction_Proxy(ITransactionLocal* This, ISOLEVEL level,
1787 ULONG flags, ITransactionOptions *options, ULONG *trans_level)
1789 FIXME("(%p)->(%ld, 0x%08lx, %p, %p): stub\n", This, level, flags, options, trans_level);
1790 return E_NOTIMPL;
1793 HRESULT __RPC_STUB ITransactionLocal_StartTransaction_Stub(ITransactionLocal* This, ISOLEVEL level,
1794 ULONG flags, ITransactionOptions *options, ULONG *trans_level, IErrorInfo **info)
1796 FIXME("(%p)->(%ld, 0x%08lx, %p, %p, %p): stub\n", This, level, flags, options, trans_level, info);
1797 return E_NOTIMPL;
1800 HRESULT CALLBACK ITransactionObject_GetTransactionObject_Proxy(ITransactionObject* This,
1801 ULONG level, ITransaction **transaction)
1803 FIXME("(%p)->(%ld, %p): stub\n", This, level, transaction);
1804 return E_NOTIMPL;
1807 HRESULT __RPC_STUB ITransactionObject_GetTransactionObject_Stub(ITransactionObject* This,
1808 ULONG level, ITransaction **transaction, IErrorInfo **info)
1810 FIXME("(%p)->(%ld, %p, %p): stub\n", This, level, transaction, info);
1811 return E_NOTIMPL;