wbemdisp: Forward ExecMethod_() to Services object.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a7f02bc41
commit
c86ad936d0
|
@ -1414,14 +1414,36 @@ static HRESULT WINAPI object_ReferencesAsync_(
|
||||||
|
|
||||||
static HRESULT WINAPI object_ExecMethod_(
|
static HRESULT WINAPI object_ExecMethod_(
|
||||||
ISWbemObject *iface,
|
ISWbemObject *iface,
|
||||||
BSTR strMethodName,
|
BSTR method,
|
||||||
IDispatch *objWbemInParameters,
|
IDispatch *in_params,
|
||||||
LONG iFlags,
|
LONG flags,
|
||||||
IDispatch *objWbemNamedValueSet,
|
IDispatch *valueset,
|
||||||
ISWbemObject **objWbemOutParameters )
|
ISWbemObject **out_params )
|
||||||
{
|
{
|
||||||
FIXME( "\n" );
|
struct object *object = impl_from_ISWbemObject( iface );
|
||||||
return E_NOTIMPL;
|
VARIANT path;
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
|
TRACE( "%p, %s, %p, %#x, %p, %p\n", object, debugstr_w(method), in_params, flags, valueset, out_params );
|
||||||
|
|
||||||
|
V_VT( &path ) = VT_EMPTY;
|
||||||
|
hr = IWbemClassObject_Get( object->object, L"__PATH", 0, &path, NULL, NULL );
|
||||||
|
if (SUCCEEDED(hr))
|
||||||
|
{
|
||||||
|
if (V_VT( &path ) != VT_BSTR)
|
||||||
|
{
|
||||||
|
WARN( "Unexpected object path value type.\n" );
|
||||||
|
VariantClear( &path );
|
||||||
|
return E_UNEXPECTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr = ISWbemServices_ExecMethod( &object->services->ISWbemServices_iface, V_BSTR( &path ), method,
|
||||||
|
in_params, flags, valueset, out_params );
|
||||||
|
|
||||||
|
VariantClear( &path );
|
||||||
|
}
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI object_ExecMethodAsync_(
|
static HRESULT WINAPI object_ExecMethodAsync_(
|
||||||
|
|
Loading…
Reference in New Issue