Commit d5113e51 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msado15: Implement Dispatch functions in _Recordset.

parent f8903ad5
...@@ -183,6 +183,7 @@ static REFIID tid_ids[] = { ...@@ -183,6 +183,7 @@ static REFIID tid_ids[] = {
&IID__Connection, &IID__Connection,
&IID_Field, &IID_Field,
&IID_Fields, &IID_Fields,
&IID__Recordset,
&IID__Stream, &IID__Stream,
}; };
......
...@@ -47,6 +47,7 @@ typedef enum tid_t { ...@@ -47,6 +47,7 @@ typedef enum tid_t {
Connection_tid, Connection_tid,
Field_tid, Field_tid,
Fields_tid, Fields_tid,
Recordset_tid,
Stream_tid, Stream_tid,
LAST_tid LAST_tid
} tid_t; } tid_t;
......
...@@ -928,29 +928,57 @@ static HRESULT WINAPI recordset_QueryInterface( _Recordset *iface, REFIID riid, ...@@ -928,29 +928,57 @@ static HRESULT WINAPI recordset_QueryInterface( _Recordset *iface, REFIID riid,
static HRESULT WINAPI recordset_GetTypeInfoCount( _Recordset *iface, UINT *count ) static HRESULT WINAPI recordset_GetTypeInfoCount( _Recordset *iface, UINT *count )
{ {
FIXME( "%p, %p\n", iface, count ); struct recordset *recordset = impl_from_Recordset( iface );
return E_NOTIMPL; TRACE( "%p, %p\n", recordset, count );
*count = 1;
return S_OK;
} }
static HRESULT WINAPI recordset_GetTypeInfo( _Recordset *iface, UINT index, LCID lcid, ITypeInfo **info ) static HRESULT WINAPI recordset_GetTypeInfo( _Recordset *iface, UINT index, LCID lcid, ITypeInfo **info )
{ {
FIXME( "%p, %u, %u, %p\n", iface, index, lcid, info ); struct recordset *recordset = impl_from_Recordset( iface );
return E_NOTIMPL; TRACE( "%p, %u, %u, %p\n", recordset, index, lcid, info );
return get_typeinfo(Recordset_tid, info);
} }
static HRESULT WINAPI recordset_GetIDsOfNames( _Recordset *iface, REFIID riid, LPOLESTR *names, UINT count, static HRESULT WINAPI recordset_GetIDsOfNames( _Recordset *iface, REFIID riid, LPOLESTR *names, UINT count,
LCID lcid, DISPID *dispid ) LCID lcid, DISPID *dispid )
{ {
FIXME( "%p, %s, %p, %u, %u, %p\n", iface, debugstr_guid(riid), names, count, lcid, dispid ); struct recordset *recordset = impl_from_Recordset( iface );
return E_NOTIMPL; HRESULT hr;
ITypeInfo *typeinfo;
TRACE( "%p, %s, %p, %u, %u, %p\n", recordset, debugstr_guid(riid), names, count, lcid, dispid );
hr = get_typeinfo(Recordset_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, names, count, dispid);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI recordset_Invoke( _Recordset *iface, DISPID member, REFIID riid, LCID lcid, WORD flags, static HRESULT WINAPI recordset_Invoke( _Recordset *iface, DISPID member, REFIID riid, LCID lcid, WORD flags,
DISPPARAMS *params, VARIANT *result, EXCEPINFO *excep_info, UINT *arg_err ) DISPPARAMS *params, VARIANT *result, EXCEPINFO *excep_info, UINT *arg_err )
{ {
FIXME( "%p, %d, %s, %d, %d, %p, %p, %p, %p\n", iface, member, debugstr_guid(riid), lcid, flags, params, struct recordset *recordset = impl_from_Recordset( iface );
HRESULT hr;
ITypeInfo *typeinfo;
TRACE( "%p, %d, %s, %d, %d, %p, %p, %p, %p\n", recordset, member, debugstr_guid(riid), lcid, flags, params,
result, excep_info, arg_err ); result, excep_info, arg_err );
return E_NOTIMPL;
hr = get_typeinfo(Recordset_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &recordset->Recordset_iface, member, flags, params,
result, excep_info, arg_err);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI recordset_get_Properties( _Recordset *iface, Properties **obj ) static HRESULT WINAPI recordset_get_Properties( _Recordset *iface, Properties **obj )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment