include: Add IXMLHttpRequest interface and XMLHttpRequest coclass to xmldoc.idl.

This commit is contained in:
Robert Shearman 2006-06-12 01:34:40 +01:00 committed by Alexandre Julliard
parent be35acf02e
commit f701435ca3
1 changed files with 63 additions and 0 deletions

View File

@ -666,3 +666,66 @@ coclass DOMFreeThreadedDocument
[default] interface IXMLDOMDocument; [default] interface IXMLDOMDocument;
[default, source] dispinterface XMLDOMDocumentEvents; [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;
};