Alistair Leslie-Hughes : msxml3: Implemented IDispatch for IXMLDOMProcessingInstruction.

Alexandre Julliard julliard at winehq.org
Tue Feb 19 08:05:23 CST 2008


Module: wine
Branch: master
Commit: 9fecdccc63e0e7d8a0cf6f161d2bb3486b3e40b0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9fecdccc63e0e7d8a0cf6f161d2bb3486b3e40b0

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Feb 19 09:21:06 2008 +1100

msxml3: Implemented IDispatch for IXMLDOMProcessingInstruction.

---

 dlls/msxml3/pi.c |   57 ++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 49 insertions(+), 8 deletions(-)

diff --git a/dlls/msxml3/pi.c b/dlls/msxml3/pi.c
index 1129690..a0b0cf2 100644
--- a/dlls/msxml3/pi.c
+++ b/dlls/msxml3/pi.c
@@ -106,8 +106,13 @@ static HRESULT WINAPI dom_pi_GetTypeInfoCount(
     IXMLDOMProcessingInstruction *iface,
     UINT* pctinfo )
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
+
+    TRACE("(%p)->(%p)\n", This, pctinfo);
+
+    *pctinfo = 1;
+
+    return S_OK;
 }
 
 static HRESULT WINAPI dom_pi_GetTypeInfo(
@@ -115,8 +120,14 @@ static HRESULT WINAPI dom_pi_GetTypeInfo(
     UINT iTInfo, LCID lcid,
     ITypeInfo** ppTInfo )
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
+    HRESULT hr;
+
+    TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
+
+    hr = get_typeinfo(IXMLDOMProcessingInstruction_tid, ppTInfo);
+
+    return hr;
 }
 
 static HRESULT WINAPI dom_pi_GetIDsOfNames(
@@ -124,8 +135,24 @@ static HRESULT WINAPI dom_pi_GetIDsOfNames(
     REFIID riid, LPOLESTR* rgszNames,
     UINT cNames, LCID lcid, DISPID* rgDispId )
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
+    ITypeInfo *typeinfo;
+    HRESULT hr;
+
+    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(IXMLDOMProcessingInstruction_tid, &typeinfo);
+    if(SUCCEEDED(hr))
+    {
+        hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
+        ITypeInfo_Release(typeinfo);
+    }
+
+    return hr;
 }
 
 static HRESULT WINAPI dom_pi_Invoke(
@@ -134,8 +161,22 @@ static HRESULT WINAPI dom_pi_Invoke(
     WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult,
     EXCEPINFO* pExcepInfo, UINT* puArgErr )
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
+    ITypeInfo *typeinfo;
+    HRESULT hr;
+
+    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(IXMLDOMProcessingInstruction_tid, &typeinfo);
+    if(SUCCEEDED(hr))
+    {
+       hr = ITypeInfo_Invoke(typeinfo, &(This->lpVtbl), dispIdMember, wFlags, pDispParams,
+                pVarResult, pExcepInfo, puArgErr);
+        ITypeInfo_Release(typeinfo);
+    }
+
+    return hr;
 }
 
 static HRESULT WINAPI dom_pi_get_nodeName(




More information about the wine-cvs mailing list