From f701435ca330f8f8dec48c9b14f30f8a904323aa Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 12 Jun 2006 01:34:40 +0100 Subject: [PATCH] include: Add IXMLHttpRequest interface and XMLHttpRequest coclass to xmldoc.idl. --- include/xmldom.idl | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/include/xmldom.idl b/include/xmldom.idl index 4675253b217..ebc1bd00dcc 100644 --- a/include/xmldom.idl +++ b/include/xmldom.idl @@ -666,3 +666,66 @@ coclass DOMFreeThreadedDocument [default] interface IXMLDOMDocument; [default, source] dispinterface XMLDOMDocumentEvents; } + +[ +object, +uuid(ed8c108d-4349-11d2-91a4-00c04f7969e8), +odl, +dual, +oleautomation, +pointer_default(unique) +] +interface IXMLHttpRequest : IDispatch +{ + [id(1)] + HRESULT open([in] BSTR bstrMethod, [in] BSTR bstrUrl, + [in, optional] VARIANT varAsync, + [in, optional] VARIANT varUser, + [in, optional] VARIANT varPassword); + [id(2)] + HRESULT setRequestHeader([in] BSTR bstrHeader, [in] BSTR bstrValue); + + [id(3)] + HRESULT getResponseHeader([in] BSTR bstrHeader, [out, retval] BSTR *pbstrValue); + + [id(4)] + HRESULT getAllResponseHeaders([out, retval] BSTR *pbstrHeaders); + + [id(5)] + HRESULT send([in, optional] VARIANT varBody); + + [id(6)] + HRESULT abort(); + + [propget, id(7)] + HRESULT status([out, retval] long *plStatus); + + [propget, id(8)] + HRESULT statusText([out, retval] BSTR *bstrStatus); + + [propget, id(9)] + HRESULT responseXML([out, retval] IDispatch **ppBody); + + [propget, id(10)] + HRESULT responseText([out, retval] BSTR *pbstrBody); + + [propget, id(11)] + HRESULT responseBody([out, retval] VARIANT *pvarBody); + + [propget, id(12)] + HRESULT responseStream([out, retval] VARIANT *pvarBody); + + [propget, id(13)] + HRESULT readyState([out, retval] long *plState); + + [propput, id(14)] + HRESULT onreadystatechange([in] IDispatch *pReadyStateSink); +}; + +[ +uuid(ed8c108e-4349-11d2-91a4-00c04f7969e8) +] +coclass XMLHTTPRequest +{ + [default] interface IXMLHttpRequest; +};