include: Add IXMLHttpRequest interface and XMLHttpRequest coclass to xmldoc.idl.
This commit is contained in:
parent
be35acf02e
commit
f701435ca3
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue