static ULONG WINAPI SupportErrorInfo_AddRef(ISupportErrorInfo *iface) { SupportErrorInfo *This = impl_from_ISupportErrorInfo(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p)->(%d)\n", This, ref ); return ref; }
static HRESULT WINAPI support_error_InterfaceSupportsErrorInfo( ISupportErrorInfo *iface, REFIID riid ) { xmlnodemap *This = impl_from_ISupportErrorInfo( iface ); TRACE("(%p)->(%s)\n", This, debugstr_guid(riid)); return IsEqualGUID(riid, &IID_IXMLDOMNamedNodeMap) ? S_OK : S_FALSE; }
static HRESULT WINAPI support_error_QueryInterface( ISupportErrorInfo *iface, REFIID riid, void** ppvObject ) { xmlnodemap *This = impl_from_ISupportErrorInfo( iface ); TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject); return IXMLDOMNamedNodeMap_QueryInterface(&This->IXMLDOMNamedNodeMap_iface, riid, ppvObject); }
static HRESULT WINAPI ISupportErrorInfoImpl_InterfaceSupportsErrorInfo( ISupportErrorInfo* iface, REFIID riid) { ErrorInfoImpl *This = impl_from_ISupportErrorInfo(iface); TRACE("(%p)->(%s)\n", This, debugstr_guid(riid)); return (IsEqualIID(riid, &This->m_Guid)) ? S_OK : S_FALSE; }
static HRESULT WINAPI ISupportErrorInfoImpl_QueryInterface( ISupportErrorInfo* iface, REFIID riid, VOID** ppvoid) { ErrorInfoImpl *This = impl_from_ISupportErrorInfo(iface); return IErrorInfo_QueryInterface(&This->IErrorInfo_iface, riid, ppvoid); }
static ULONG WINAPI SupportErrorInfo_Release(ISupportErrorInfo *iface) { SupportErrorInfo *This = impl_from_ISupportErrorInfo(iface); LONG ref = InterlockedDecrement(&This->ref); TRACE("(%p)->(%d)\n", This, ref); if (ref == 0) heap_free(This); return ref; }
static HRESULT WINAPI SupportErrorInfo_QueryInterface(ISupportErrorInfo *iface, REFIID riid, void **obj) { SupportErrorInfo *This = impl_from_ISupportErrorInfo(iface); TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), obj); *obj = NULL; if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_ISupportErrorInfo)) { *obj = iface; ISupportErrorInfo_AddRef(iface); return S_OK; } return E_NOINTERFACE; }
static HRESULT WINAPI SupportErrorInfo_InterfaceSupportsErrorInfo(ISupportErrorInfo *iface, REFIID riid) { SupportErrorInfo *This = impl_from_ISupportErrorInfo(iface); enum tid_t const *tid; TRACE("(%p)->(%s)\n", This, debugstr_guid(riid)); tid = This->iids; while (*tid) { if (IsEqualGUID(riid, get_riid_from_tid(*tid))) return S_OK; tid++; } return S_FALSE; }
static ULONG WINAPI support_error_Release( ISupportErrorInfo *iface ) { xmlnodemap *This = impl_from_ISupportErrorInfo( iface ); return IXMLDOMNamedNodeMap_Release(&This->IXMLDOMNamedNodeMap_iface); }
static ULONG WINAPI ISupportErrorInfoImpl_Release(ISupportErrorInfo* iface) { ErrorInfoImpl *This = impl_from_ISupportErrorInfo(iface); return IErrorInfo_Release(&This->IErrorInfo_iface); }