msado15: Implement Dispatch functions in _Command.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
079a963a27
commit
7beb6e85e3
|
@ -91,29 +91,57 @@ static ULONG WINAPI command_Release( _Command *iface )
|
||||||
|
|
||||||
static HRESULT WINAPI command_GetTypeInfoCount( _Command *iface, UINT *count )
|
static HRESULT WINAPI command_GetTypeInfoCount( _Command *iface, UINT *count )
|
||||||
{
|
{
|
||||||
FIXME( "%p, %p\n", iface, count );
|
struct command *command = impl_from_Command( iface );
|
||||||
return E_NOTIMPL;
|
TRACE( "%p, %p\n", command, count );
|
||||||
|
*count = 1;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI command_GetTypeInfo( _Command *iface, UINT index, LCID lcid, ITypeInfo **info )
|
static HRESULT WINAPI command_GetTypeInfo( _Command *iface, UINT index, LCID lcid, ITypeInfo **info )
|
||||||
{
|
{
|
||||||
FIXME( "%p, %u, %u, %p\n", iface, index, lcid, info );
|
struct command *command = impl_from_Command( iface );
|
||||||
return E_NOTIMPL;
|
TRACE( "%p, %u, %u, %p\n", command, index, lcid, info );
|
||||||
|
return get_typeinfo(Command_tid, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI command_GetIDsOfNames( _Command *iface, REFIID riid, LPOLESTR *names, UINT count,
|
static HRESULT WINAPI command_GetIDsOfNames( _Command *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 command *command = impl_from_Command( iface );
|
||||||
return E_NOTIMPL;
|
HRESULT hr;
|
||||||
|
ITypeInfo *typeinfo;
|
||||||
|
|
||||||
|
TRACE( "%p, %s, %p, %u, %u, %p\n", command, debugstr_guid(riid), names, count, lcid, dispid );
|
||||||
|
|
||||||
|
hr = get_typeinfo(Command_tid, &typeinfo);
|
||||||
|
if(SUCCEEDED(hr))
|
||||||
|
{
|
||||||
|
hr = ITypeInfo_GetIDsOfNames(typeinfo, names, count, dispid);
|
||||||
|
ITypeInfo_Release(typeinfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI command_Invoke( _Command *iface, DISPID member, REFIID riid, LCID lcid, WORD flags,
|
static HRESULT WINAPI command_Invoke( _Command *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 command *command = impl_from_Command( iface );
|
||||||
|
HRESULT hr;
|
||||||
|
ITypeInfo *typeinfo;
|
||||||
|
|
||||||
|
TRACE( "%p, %d, %s, %d, %d, %p, %p, %p, %p\n", command, member, debugstr_guid(riid), lcid, flags, params,
|
||||||
result, excep_info, arg_err );
|
result, excep_info, arg_err );
|
||||||
return E_NOTIMPL;
|
|
||||||
|
hr = get_typeinfo(Connection_tid, &typeinfo);
|
||||||
|
if(SUCCEEDED(hr))
|
||||||
|
{
|
||||||
|
hr = ITypeInfo_Invoke(typeinfo, &command->Command_iface, member, flags, params,
|
||||||
|
result, excep_info, arg_err);
|
||||||
|
ITypeInfo_Release(typeinfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI command_get_Properties( _Command *iface, Properties **props )
|
static HRESULT WINAPI command_get_Properties( _Command *iface, Properties **props )
|
||||||
|
|
|
@ -179,6 +179,7 @@ static ITypeLib *typelib;
|
||||||
static ITypeInfo *typeinfos[LAST_tid];
|
static ITypeInfo *typeinfos[LAST_tid];
|
||||||
|
|
||||||
static REFIID tid_ids[] = {
|
static REFIID tid_ids[] = {
|
||||||
|
&IID__Command,
|
||||||
&IID__Connection,
|
&IID__Connection,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ static inline WCHAR *strdupW( const WCHAR *src )
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef enum tid_t {
|
typedef enum tid_t {
|
||||||
|
Command_tid,
|
||||||
Connection_tid,
|
Connection_tid,
|
||||||
LAST_tid
|
LAST_tid
|
||||||
} tid_t;
|
} tid_t;
|
||||||
|
|
Loading…
Reference in New Issue