Huw Davies : msdaps: Add server side stubs for IAccessor.

Alexandre Julliard julliard at winehq.org
Thu Feb 4 11:11:04 CST 2010


Module: wine
Branch: master
Commit: 7deb07cf2f13c10f48e8c7da36eadf1de87bd385
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7deb07cf2f13c10f48e8c7da36eadf1de87bd385

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Feb  4 12:19:06 2010 +0000

msdaps: Add server side stubs for IAccessor.

---

 dlls/msdaps/row_server.c   |   40 +++++++++++++++++++++++++++++++++++++++-
 dlls/msdaps/row_server.idl |   18 ++++++++++++++++++
 2 files changed, 57 insertions(+), 1 deletions(-)

diff --git a/dlls/msdaps/row_server.c b/dlls/msdaps/row_server.c
index 5fab315..6c35270 100644
--- a/dlls/msdaps/row_server.c
+++ b/dlls/msdaps/row_server.c
@@ -371,6 +371,40 @@ static HRESULT WINAPI server_GetSpecification(IWineRowServer* iface, REFIID riid
     return E_NOTIMPL;
 }
 
+static HRESULT WINAPI server_AddRefAccessor(IWineRowServer* iface, HACCESSOR hAccessor,
+                                            DBREFCOUNT *pcRefCount)
+{
+    server *This = impl_from_IWineRowServer(iface);
+    FIXME("(%p): stub\n", This);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI server_CreateAccessor(IWineRowServer* iface, DBACCESSORFLAGS dwAccessorFlags,
+                                            DBCOUNTITEM cBindings, const DBBINDING *rgBindings, DBLENGTH cbRowSize,
+                                            HACCESSOR *phAccessor, DBBINDSTATUS *rgStatus)
+{
+    server *This = impl_from_IWineRowServer(iface);
+    FIXME("(%p)->(%08x, %d, %p, %d, %p, %p): stub\n", This, dwAccessorFlags, cBindings, rgBindings, cbRowSize, phAccessor, rgStatus);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI server_GetBindings(IWineRowServer* iface, HACCESSOR hAccessor,
+                                         DBACCESSORFLAGS *pdwAccessorFlags, DBCOUNTITEM *pcBindings,
+                                         DBBINDING **prgBindings)
+{
+    server *This = impl_from_IWineRowServer(iface);
+    FIXME("(%p)->(%08lx, %p, %p, %p): stub\n", This, hAccessor, pdwAccessorFlags, pcBindings, prgBindings);
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI server_ReleaseAccessor(IWineRowServer* iface, HACCESSOR hAccessor,
+                                             DBREFCOUNT *pcRefCount)
+{
+    server *This = impl_from_IWineRowServer(iface);
+    FIXME("(%p)->(%08lx, %p): stub\n", This, hAccessor, pcRefCount);
+    return E_NOTIMPL;
+}
+
 static const IWineRowServerVtbl server_vtbl =
 {
     server_QueryInterface,
@@ -393,7 +427,11 @@ static const IWineRowServerVtbl server_vtbl =
     server_Hash,
     server_GetProperties,
     server_GetReferencedRowset,
-    server_GetSpecification
+    server_GetSpecification,
+    server_AddRefAccessor,
+    server_CreateAccessor,
+    server_GetBindings,
+    server_ReleaseAccessor
 };
 
 static HRESULT create_server(IUnknown *outer, const CLSID *class, void **obj)
diff --git a/dlls/msdaps/row_server.idl b/dlls/msdaps/row_server.idl
index 5f12847..aca9686 100644
--- a/dlls/msdaps/row_server.idl
+++ b/dlls/msdaps/row_server.idl
@@ -153,7 +153,25 @@ typedef struct
     HRESULT GetSpecification([in] REFIID riid,
                              [out, iid_is(riid)] IUnknown **ppSpecification);
 
+    /* IAccessor */
 
+    HRESULT AddRefAccessor([in] HACCESSOR hAccessor,
+                           [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount);
+
+    HRESULT CreateAccessor([in] DBACCESSORFLAGS dwAccessorFlags,
+                           [in] DBCOUNTITEM cBindings,
+                           [in, unique, size_is(cBindings)] const DBBINDING *rgBindings,
+                           [in] DBLENGTH cbRowSize,
+                           [out] HACCESSOR *phAccessor,
+                           [in, out, unique, size_is(cBindings)] DBBINDSTATUS *rgStatus);
+
+    HRESULT GetBindings([in] HACCESSOR hAccessor,
+                        [out] DBACCESSORFLAGS *pdwAccessorFlags,
+                        [in, out] DBCOUNTITEM *pcBindings,
+                        [out, size_is(,*pcBindings)] DBBINDING **prgBindings);
+
+    HRESULT ReleaseAccessor([in] HACCESSOR hAccessor,
+                            [in, out, unique] DBREFCOUNT *pcRefCount);
 }
 
 [




More information about the wine-cvs mailing list