Commit ed908b7b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Forward IDispatch to IDispatchEx when supported.

parent a9d8f9a0
...@@ -125,12 +125,7 @@ static HRESULT WINAPI domattr_GetTypeInfoCount( ...@@ -125,12 +125,7 @@ static HRESULT WINAPI domattr_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domattr *This = impl_from_IXMLDOMAttribute( iface ); domattr *This = impl_from_IXMLDOMAttribute( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domattr_GetTypeInfo( static HRESULT WINAPI domattr_GetTypeInfo(
...@@ -139,13 +134,8 @@ static HRESULT WINAPI domattr_GetTypeInfo( ...@@ -139,13 +134,8 @@ static HRESULT WINAPI domattr_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domattr *This = impl_from_IXMLDOMAttribute( iface ); domattr *This = impl_from_IXMLDOMAttribute( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMAttribute_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domattr_GetIDsOfNames( static HRESULT WINAPI domattr_GetIDsOfNames(
...@@ -154,23 +144,8 @@ static HRESULT WINAPI domattr_GetIDsOfNames( ...@@ -154,23 +144,8 @@ static HRESULT WINAPI domattr_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domattr *This = impl_from_IXMLDOMAttribute( iface ); domattr *This = impl_from_IXMLDOMAttribute( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMAttribute_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domattr_Invoke( static HRESULT WINAPI domattr_Invoke(
...@@ -180,20 +155,8 @@ static HRESULT WINAPI domattr_Invoke( ...@@ -180,20 +155,8 @@ static HRESULT WINAPI domattr_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domattr *This = impl_from_IXMLDOMAttribute( iface ); domattr *This = impl_from_IXMLDOMAttribute( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMAttribute_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMAttribute_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domattr_get_nodeName( static HRESULT WINAPI domattr_get_nodeName(
......
...@@ -125,12 +125,7 @@ static HRESULT WINAPI domcdata_GetTypeInfoCount( ...@@ -125,12 +125,7 @@ static HRESULT WINAPI domcdata_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domcdata *This = impl_from_IXMLDOMCDATASection( iface ); domcdata *This = impl_from_IXMLDOMCDATASection( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domcdata_GetTypeInfo( static HRESULT WINAPI domcdata_GetTypeInfo(
...@@ -139,13 +134,8 @@ static HRESULT WINAPI domcdata_GetTypeInfo( ...@@ -139,13 +134,8 @@ static HRESULT WINAPI domcdata_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domcdata *This = impl_from_IXMLDOMCDATASection( iface ); domcdata *This = impl_from_IXMLDOMCDATASection( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMCDATASection_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domcdata_GetIDsOfNames( static HRESULT WINAPI domcdata_GetIDsOfNames(
...@@ -154,23 +144,8 @@ static HRESULT WINAPI domcdata_GetIDsOfNames( ...@@ -154,23 +144,8 @@ static HRESULT WINAPI domcdata_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domcdata *This = impl_from_IXMLDOMCDATASection( iface ); domcdata *This = impl_from_IXMLDOMCDATASection( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMCDATASection_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domcdata_Invoke( static HRESULT WINAPI domcdata_Invoke(
...@@ -180,21 +155,8 @@ static HRESULT WINAPI domcdata_Invoke( ...@@ -180,21 +155,8 @@ static HRESULT WINAPI domcdata_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domcdata *This = impl_from_IXMLDOMCDATASection( iface ); domcdata *This = impl_from_IXMLDOMCDATASection( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMCDATASection_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMCDATASection_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domcdata_get_nodeName( static HRESULT WINAPI domcdata_get_nodeName(
......
...@@ -125,12 +125,7 @@ static HRESULT WINAPI domcomment_GetTypeInfoCount( ...@@ -125,12 +125,7 @@ static HRESULT WINAPI domcomment_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domcomment *This = impl_from_IXMLDOMComment( iface ); domcomment *This = impl_from_IXMLDOMComment( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domcomment_GetTypeInfo( static HRESULT WINAPI domcomment_GetTypeInfo(
...@@ -139,13 +134,8 @@ static HRESULT WINAPI domcomment_GetTypeInfo( ...@@ -139,13 +134,8 @@ static HRESULT WINAPI domcomment_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domcomment *This = impl_from_IXMLDOMComment( iface ); domcomment *This = impl_from_IXMLDOMComment( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMComment_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domcomment_GetIDsOfNames( static HRESULT WINAPI domcomment_GetIDsOfNames(
...@@ -154,23 +144,8 @@ static HRESULT WINAPI domcomment_GetIDsOfNames( ...@@ -154,23 +144,8 @@ static HRESULT WINAPI domcomment_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domcomment *This = impl_from_IXMLDOMComment( iface ); domcomment *This = impl_from_IXMLDOMComment( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMComment_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domcomment_Invoke( static HRESULT WINAPI domcomment_Invoke(
...@@ -180,21 +155,8 @@ static HRESULT WINAPI domcomment_Invoke( ...@@ -180,21 +155,8 @@ static HRESULT WINAPI domcomment_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domcomment *This = impl_from_IXMLDOMComment( iface ); domcomment *This = impl_from_IXMLDOMComment( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMComment_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMComment_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domcomment_get_nodeName( static HRESULT WINAPI domcomment_get_nodeName(
......
...@@ -124,12 +124,7 @@ static HRESULT WINAPI domfrag_GetTypeInfoCount( ...@@ -124,12 +124,7 @@ static HRESULT WINAPI domfrag_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface ); domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domfrag_GetTypeInfo( static HRESULT WINAPI domfrag_GetTypeInfo(
...@@ -138,13 +133,8 @@ static HRESULT WINAPI domfrag_GetTypeInfo( ...@@ -138,13 +133,8 @@ static HRESULT WINAPI domfrag_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface ); domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMDocumentFragment_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domfrag_GetIDsOfNames( static HRESULT WINAPI domfrag_GetIDsOfNames(
...@@ -153,23 +143,8 @@ static HRESULT WINAPI domfrag_GetIDsOfNames( ...@@ -153,23 +143,8 @@ static HRESULT WINAPI domfrag_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface ); domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMDocumentFragment_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domfrag_Invoke( static HRESULT WINAPI domfrag_Invoke(
...@@ -179,21 +154,8 @@ static HRESULT WINAPI domfrag_Invoke( ...@@ -179,21 +154,8 @@ static HRESULT WINAPI domfrag_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface ); domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMDocumentFragment_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMDocumentFragment_iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domfrag_get_nodeName( static HRESULT WINAPI domfrag_get_nodeName(
......
...@@ -116,12 +116,7 @@ static HRESULT WINAPI domdoctype_GetTypeInfoCount( ...@@ -116,12 +116,7 @@ static HRESULT WINAPI domdoctype_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domdoctype *This = impl_from_IXMLDOMDocumentType( iface ); domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domdoctype_GetTypeInfo( static HRESULT WINAPI domdoctype_GetTypeInfo(
...@@ -130,13 +125,8 @@ static HRESULT WINAPI domdoctype_GetTypeInfo( ...@@ -130,13 +125,8 @@ static HRESULT WINAPI domdoctype_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domdoctype *This = impl_from_IXMLDOMDocumentType( iface ); domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMDocumentType_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domdoctype_GetIDsOfNames( static HRESULT WINAPI domdoctype_GetIDsOfNames(
...@@ -145,23 +135,8 @@ static HRESULT WINAPI domdoctype_GetIDsOfNames( ...@@ -145,23 +135,8 @@ static HRESULT WINAPI domdoctype_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domdoctype *This = impl_from_IXMLDOMDocumentType( iface ); domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMDocumentType_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domdoctype_Invoke( static HRESULT WINAPI domdoctype_Invoke(
...@@ -171,21 +146,8 @@ static HRESULT WINAPI domdoctype_Invoke( ...@@ -171,21 +146,8 @@ static HRESULT WINAPI domdoctype_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domdoctype *This = impl_from_IXMLDOMDocumentType( iface ); domdoctype *This = impl_from_IXMLDOMDocumentType( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMDocumentType_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMDocumentType_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domdoctype_get_nodeName( static HRESULT WINAPI domdoctype_get_nodeName(
......
...@@ -870,9 +870,7 @@ static HRESULT WINAPI domdoc_QueryInterface( IXMLDOMDocument3 *iface, REFIID rii ...@@ -870,9 +870,7 @@ static HRESULT WINAPI domdoc_QueryInterface( IXMLDOMDocument3 *iface, REFIID rii
return S_OK; return S_OK;
} }
static ULONG WINAPI domdoc_AddRef( IXMLDOMDocument3 *iface )
static ULONG WINAPI domdoc_AddRef(
IXMLDOMDocument3 *iface )
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
ULONG ref = InterlockedIncrement( &This->ref ); ULONG ref = InterlockedIncrement( &This->ref );
...@@ -880,9 +878,7 @@ static ULONG WINAPI domdoc_AddRef( ...@@ -880,9 +878,7 @@ static ULONG WINAPI domdoc_AddRef(
return ref; return ref;
} }
static ULONG WINAPI domdoc_Release( IXMLDOMDocument3 *iface )
static ULONG WINAPI domdoc_Release(
IXMLDOMDocument3 *iface )
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
LONG ref = InterlockedDecrement( &This->ref ); LONG ref = InterlockedDecrement( &This->ref );
...@@ -914,12 +910,7 @@ static ULONG WINAPI domdoc_Release( ...@@ -914,12 +910,7 @@ static ULONG WINAPI domdoc_Release(
static HRESULT WINAPI domdoc_GetTypeInfoCount( IXMLDOMDocument3 *iface, UINT* pctinfo ) static HRESULT WINAPI domdoc_GetTypeInfoCount( IXMLDOMDocument3 *iface, UINT* pctinfo )
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domdoc_GetTypeInfo( static HRESULT WINAPI domdoc_GetTypeInfo(
...@@ -927,10 +918,7 @@ static HRESULT WINAPI domdoc_GetTypeInfo( ...@@ -927,10 +918,7 @@ static HRESULT WINAPI domdoc_GetTypeInfo(
UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo ) UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo )
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
return get_typeinfo(IXMLDOMDocument3_tid, ppTInfo);
} }
static HRESULT WINAPI domdoc_GetIDsOfNames( static HRESULT WINAPI domdoc_GetIDsOfNames(
...@@ -942,26 +930,10 @@ static HRESULT WINAPI domdoc_GetIDsOfNames( ...@@ -942,26 +930,10 @@ static HRESULT WINAPI domdoc_GetIDsOfNames(
DISPID* rgDispId) DISPID* rgDispId)
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMDocument3_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domdoc_Invoke( static HRESULT WINAPI domdoc_Invoke(
IXMLDOMDocument3 *iface, IXMLDOMDocument3 *iface,
DISPID dispIdMember, DISPID dispIdMember,
...@@ -974,24 +946,10 @@ static HRESULT WINAPI domdoc_Invoke( ...@@ -974,24 +946,10 @@ static HRESULT WINAPI domdoc_Invoke(
UINT* puArgErr) UINT* puArgErr)
{ {
domdoc *This = impl_from_IXMLDOMDocument3( iface ); domdoc *This = impl_from_IXMLDOMDocument3( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMDocument3_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMDocument3_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domdoc_get_nodeName( static HRESULT WINAPI domdoc_get_nodeName(
IXMLDOMDocument3 *iface, IXMLDOMDocument3 *iface,
BSTR* name ) BSTR* name )
......
...@@ -114,12 +114,7 @@ static HRESULT WINAPI dimimpl_GetTypeInfoCount( ...@@ -114,12 +114,7 @@ static HRESULT WINAPI dimimpl_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domimpl *This = impl_from_IXMLDOMImplementation( iface ); domimpl *This = impl_from_IXMLDOMImplementation( iface );
return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI dimimpl_GetTypeInfo( static HRESULT WINAPI dimimpl_GetTypeInfo(
...@@ -128,10 +123,8 @@ static HRESULT WINAPI dimimpl_GetTypeInfo( ...@@ -128,10 +123,8 @@ static HRESULT WINAPI dimimpl_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domimpl *This = impl_from_IXMLDOMImplementation( iface ); domimpl *This = impl_from_IXMLDOMImplementation( iface );
return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface,
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo); iTInfo, lcid, ppTInfo);
return get_typeinfo(IXMLDOMImplementation_tid, ppTInfo);
} }
static HRESULT WINAPI dimimpl_GetIDsOfNames( static HRESULT WINAPI dimimpl_GetIDsOfNames(
...@@ -140,23 +133,8 @@ static HRESULT WINAPI dimimpl_GetIDsOfNames( ...@@ -140,23 +133,8 @@ static HRESULT WINAPI dimimpl_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domimpl *This = impl_from_IXMLDOMImplementation( iface ); domimpl *This = impl_from_IXMLDOMImplementation( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMImplementation_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI dimimpl_Invoke( static HRESULT WINAPI dimimpl_Invoke(
...@@ -166,21 +144,8 @@ static HRESULT WINAPI dimimpl_Invoke( ...@@ -166,21 +144,8 @@ static HRESULT WINAPI dimimpl_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domimpl *This = impl_from_IXMLDOMImplementation( iface ); domimpl *This = impl_from_IXMLDOMImplementation( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMImplementation_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMImplementation_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI dimimpl_hasFeature(IXMLDOMImplementation* This, BSTR feature, BSTR version, VARIANT_BOOL *hasFeature) static HRESULT WINAPI dimimpl_hasFeature(IXMLDOMImplementation* This, BSTR feature, BSTR version, VARIANT_BOOL *hasFeature)
......
...@@ -138,12 +138,7 @@ static HRESULT WINAPI domelem_GetTypeInfoCount( ...@@ -138,12 +138,7 @@ static HRESULT WINAPI domelem_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domelem *This = impl_from_IXMLDOMElement( iface ); domelem *This = impl_from_IXMLDOMElement( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domelem_GetTypeInfo( static HRESULT WINAPI domelem_GetTypeInfo(
...@@ -152,13 +147,8 @@ static HRESULT WINAPI domelem_GetTypeInfo( ...@@ -152,13 +147,8 @@ static HRESULT WINAPI domelem_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domelem *This = impl_from_IXMLDOMElement( iface ); domelem *This = impl_from_IXMLDOMElement( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMElement_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domelem_GetIDsOfNames( static HRESULT WINAPI domelem_GetIDsOfNames(
...@@ -167,23 +157,8 @@ static HRESULT WINAPI domelem_GetIDsOfNames( ...@@ -167,23 +157,8 @@ static HRESULT WINAPI domelem_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domelem *This = impl_from_IXMLDOMElement( iface ); domelem *This = impl_from_IXMLDOMElement( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMElement_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domelem_Invoke( static HRESULT WINAPI domelem_Invoke(
...@@ -193,21 +168,8 @@ static HRESULT WINAPI domelem_Invoke( ...@@ -193,21 +168,8 @@ static HRESULT WINAPI domelem_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domelem *This = impl_from_IXMLDOMElement( iface ); domelem *This = impl_from_IXMLDOMElement( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMElement_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMElement_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domelem_get_nodeName( static HRESULT WINAPI domelem_get_nodeName(
......
...@@ -124,11 +124,7 @@ static HRESULT WINAPI entityref_GetTypeInfoCount( ...@@ -124,11 +124,7 @@ static HRESULT WINAPI entityref_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
entityref *This = impl_from_IXMLDOMEntityReference( iface ); entityref *This = impl_from_IXMLDOMEntityReference( iface );
TRACE("(%p)->(%p)\n", This, pctinfo); return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI entityref_GetTypeInfo( static HRESULT WINAPI entityref_GetTypeInfo(
...@@ -137,13 +133,8 @@ static HRESULT WINAPI entityref_GetTypeInfo( ...@@ -137,13 +133,8 @@ static HRESULT WINAPI entityref_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
entityref *This = impl_from_IXMLDOMEntityReference( iface ); entityref *This = impl_from_IXMLDOMEntityReference( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMEntityReference_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI entityref_GetIDsOfNames( static HRESULT WINAPI entityref_GetIDsOfNames(
...@@ -152,23 +143,8 @@ static HRESULT WINAPI entityref_GetIDsOfNames( ...@@ -152,23 +143,8 @@ static HRESULT WINAPI entityref_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
entityref *This = impl_from_IXMLDOMEntityReference( iface ); entityref *This = impl_from_IXMLDOMEntityReference( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMEntityReference_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI entityref_Invoke( static HRESULT WINAPI entityref_Invoke(
...@@ -178,21 +154,8 @@ static HRESULT WINAPI entityref_Invoke( ...@@ -178,21 +154,8 @@ static HRESULT WINAPI entityref_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
entityref *This = impl_from_IXMLDOMEntityReference( iface ); entityref *This = impl_from_IXMLDOMEntityReference( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMEntityReference_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMEntityReference_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI entityref_get_nodeName( static HRESULT WINAPI entityref_get_nodeName(
......
...@@ -131,12 +131,7 @@ static HRESULT WINAPI xmlnodemap_GetTypeInfoCount( ...@@ -131,12 +131,7 @@ static HRESULT WINAPI xmlnodemap_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface ); xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI xmlnodemap_GetTypeInfo( static HRESULT WINAPI xmlnodemap_GetTypeInfo(
...@@ -145,8 +140,8 @@ static HRESULT WINAPI xmlnodemap_GetTypeInfo( ...@@ -145,8 +140,8 @@ static HRESULT WINAPI xmlnodemap_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface ); xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo); return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface,
return get_typeinfo(IXMLDOMNamedNodeMap_tid, ppTInfo); iTInfo, lcid, ppTInfo);
} }
static HRESULT WINAPI xmlnodemap_GetIDsOfNames( static HRESULT WINAPI xmlnodemap_GetIDsOfNames(
...@@ -155,23 +150,8 @@ static HRESULT WINAPI xmlnodemap_GetIDsOfNames( ...@@ -155,23 +150,8 @@ static HRESULT WINAPI xmlnodemap_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface ); xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMNamedNodeMap_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI xmlnodemap_Invoke( static HRESULT WINAPI xmlnodemap_Invoke(
...@@ -181,21 +161,8 @@ static HRESULT WINAPI xmlnodemap_Invoke( ...@@ -181,21 +161,8 @@ static HRESULT WINAPI xmlnodemap_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface ); xmlnodemap *This = impl_from_IXMLDOMNamedNodeMap( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMNamedNodeMap_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMNamedNodeMap_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI xmlnodemap_getNamedItem( static HRESULT WINAPI xmlnodemap_getNamedItem(
......
...@@ -120,12 +120,7 @@ static HRESULT WINAPI parseError_GetTypeInfoCount( ...@@ -120,12 +120,7 @@ static HRESULT WINAPI parseError_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
parse_error_t *This = impl_from_IXMLDOMParseError( iface ); parse_error_t *This = impl_from_IXMLDOMParseError( iface );
return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI parseError_GetTypeInfo( static HRESULT WINAPI parseError_GetTypeInfo(
...@@ -135,10 +130,8 @@ static HRESULT WINAPI parseError_GetTypeInfo( ...@@ -135,10 +130,8 @@ static HRESULT WINAPI parseError_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
parse_error_t *This = impl_from_IXMLDOMParseError( iface ); parse_error_t *This = impl_from_IXMLDOMParseError( iface );
return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface,
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo); iTInfo, lcid, ppTInfo);
return get_typeinfo(IXMLDOMParseError_tid, ppTInfo);
} }
static HRESULT WINAPI parseError_GetIDsOfNames( static HRESULT WINAPI parseError_GetIDsOfNames(
...@@ -150,23 +143,8 @@ static HRESULT WINAPI parseError_GetIDsOfNames( ...@@ -150,23 +143,8 @@ static HRESULT WINAPI parseError_GetIDsOfNames(
DISPID* rgDispId ) DISPID* rgDispId )
{ {
parse_error_t *This = impl_from_IXMLDOMParseError( iface ); parse_error_t *This = impl_from_IXMLDOMParseError( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMParseError_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI parseError_Invoke( static HRESULT WINAPI parseError_Invoke(
...@@ -181,21 +159,8 @@ static HRESULT WINAPI parseError_Invoke( ...@@ -181,21 +159,8 @@ static HRESULT WINAPI parseError_Invoke(
UINT* puArgErr ) UINT* puArgErr )
{ {
parse_error_t *This = impl_from_IXMLDOMParseError( iface ); parse_error_t *This = impl_from_IXMLDOMParseError( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMParseError_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMParseError_iface, dispIdMember, wFlags,
pDispParams, pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI parseError_get_errorCode( static HRESULT WINAPI parseError_get_errorCode(
......
...@@ -170,12 +170,7 @@ static HRESULT WINAPI domselection_GetTypeInfoCount( ...@@ -170,12 +170,7 @@ static HRESULT WINAPI domselection_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domselection *This = impl_from_IXMLDOMSelection( iface ); domselection *This = impl_from_IXMLDOMSelection( iface );
return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domselection_GetTypeInfo( static HRESULT WINAPI domselection_GetTypeInfo(
...@@ -185,10 +180,8 @@ static HRESULT WINAPI domselection_GetTypeInfo( ...@@ -185,10 +180,8 @@ static HRESULT WINAPI domselection_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domselection *This = impl_from_IXMLDOMSelection( iface ); domselection *This = impl_from_IXMLDOMSelection( iface );
return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface,
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo); iTInfo, lcid, ppTInfo);
return get_typeinfo(IXMLDOMSelection_tid, ppTInfo);
} }
static HRESULT WINAPI domselection_GetIDsOfNames( static HRESULT WINAPI domselection_GetIDsOfNames(
...@@ -200,23 +193,8 @@ static HRESULT WINAPI domselection_GetIDsOfNames( ...@@ -200,23 +193,8 @@ static HRESULT WINAPI domselection_GetIDsOfNames(
DISPID* rgDispId ) DISPID* rgDispId )
{ {
domselection *This = impl_from_IXMLDOMSelection( iface ); domselection *This = impl_from_IXMLDOMSelection( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMSelection_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domselection_Invoke( static HRESULT WINAPI domselection_Invoke(
...@@ -231,21 +209,8 @@ static HRESULT WINAPI domselection_Invoke( ...@@ -231,21 +209,8 @@ static HRESULT WINAPI domselection_Invoke(
UINT* puArgErr ) UINT* puArgErr )
{ {
domselection *This = impl_from_IXMLDOMSelection( iface ); domselection *This = impl_from_IXMLDOMSelection( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMSelection_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMSelection_iface, dispIdMember, wFlags, pDispParams,
pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domselection_get_item( static HRESULT WINAPI domselection_get_item(
......
...@@ -116,12 +116,7 @@ static HRESULT WINAPI domtext_GetTypeInfoCount( ...@@ -116,12 +116,7 @@ static HRESULT WINAPI domtext_GetTypeInfoCount(
UINT* pctinfo ) UINT* pctinfo )
{ {
domtext *This = impl_from_IXMLDOMText( iface ); domtext *This = impl_from_IXMLDOMText( iface );
return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI domtext_GetTypeInfo( static HRESULT WINAPI domtext_GetTypeInfo(
...@@ -130,13 +125,8 @@ static HRESULT WINAPI domtext_GetTypeInfo( ...@@ -130,13 +125,8 @@ static HRESULT WINAPI domtext_GetTypeInfo(
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
domtext *This = impl_from_IXMLDOMText( iface ); domtext *This = impl_from_IXMLDOMText( iface );
HRESULT hr; return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
iTInfo, lcid, ppTInfo);
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMText_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI domtext_GetIDsOfNames( static HRESULT WINAPI domtext_GetIDsOfNames(
...@@ -145,23 +135,8 @@ static HRESULT WINAPI domtext_GetIDsOfNames( ...@@ -145,23 +135,8 @@ static HRESULT WINAPI domtext_GetIDsOfNames(
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
domtext *This = impl_from_IXMLDOMText( iface ); domtext *This = impl_from_IXMLDOMText( iface );
ITypeInfo *typeinfo; return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; riid, rgszNames, cNames, lcid, rgDispId);
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMText_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domtext_Invoke( static HRESULT WINAPI domtext_Invoke(
...@@ -171,21 +146,8 @@ static HRESULT WINAPI domtext_Invoke( ...@@ -171,21 +146,8 @@ static HRESULT WINAPI domtext_Invoke(
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
domtext *This = impl_from_IXMLDOMText( iface ); domtext *This = impl_from_IXMLDOMText( iface );
ITypeInfo *typeinfo; return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
HRESULT hr; dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMText_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMText_iface, dispIdMember, wFlags, pDispParams,
pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI domtext_get_nodeName( static HRESULT WINAPI domtext_get_nodeName(
......
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