#include <xmldomdid.h>
#include <idispids.h>
-import "ocidl.idl";
+#if !defined(progid) && !defined(__WIDL__)
+#define threading(model)
+#define progid(str)
+#define vi_progid(str)
+#endif
interface IXMLDOMImplementation;
interface IXMLDOMNode;
interface IXMLDOMEntity;
interface IXMLDOMEntityReference;
interface IXMLDOMParseError;
-interface IXTLRuntime;
+cpp_quote("#ifndef __MSXML_DOMNODETYPE_DEFINED")
+cpp_quote("#define __MSXML_DOMNODETYPE_DEFINED")
typedef enum tagDOMNodeType {
NODE_INVALID,
NODE_ELEMENT,
NODE_DOCUMENT_FRAGMENT,
NODE_NOTATION
} DOMNodeType;
+cpp_quote("#endif")
[
local,
[out,retval] VARIANT_BOOL *isSuccessful );
[propget, id(DISPID_READYSTATE)]
- HRESULT readyState( [out,retval] long *value );
+ HRESULT readyState( [out,retval] LONG *value );
[propget, id(DISPID_XMLDOM_DOCUMENT_PARSEERROR)]
HRESULT parseError( [out,retval] IXMLDOMParseError **errorObj );
interface IXMLDOMNodeList : IDispatch
{
[propget, id(DISPID_VALUE)]
- HRESULT item( [in] long index,
+ HRESULT item( [in] LONG index,
[out,retval] IXMLDOMNode **listItem );
[propget, id(DISPID_DOM_NODELIST_LENGTH)]
- HRESULT length( [out,retval] long *listLength );
+ HRESULT length( [out,retval] LONG *listLength );
[id(DISPID_XMLDOM_NODELIST_NEXTNODE)]
HRESULT nextNode( [out,retval] IXMLDOMNode **nextItem );
[out,retval] IXMLDOMNode **namedItem );
[propget, id(DISPID_VALUE)]
- HRESULT item( [in] long index,
+ HRESULT item( [in] LONG index,
[out,retval] IXMLDOMNode **listItem );
[propget, id(DISPID_DOM_NODELIST_LENGTH)]
- HRESULT length( [out,retval] long *listLength );
+ HRESULT length( [out,retval] LONG *listLength );
[id(DISPID_XMLDOM_NAMEDNODEMAP_GETQUALIFIEDITEM)]
HRESULT getQualifiedItem( [in] BSTR baseName,
HRESULT data( [in] BSTR data );
[propget, id(DISPID_DOM_DATA_LENGTH)]
- HRESULT length( [out,retval] long *dataLength );
+ HRESULT length( [out,retval] LONG *dataLength );
[id(DISPID_DOM_DATA_SUBSTRING)]
- HRESULT substringData( [in] long offset,
- [in] long count,
+ HRESULT substringData( [in] LONG offset,
+ [in] LONG count,
[out,retval] BSTR *data );
[id(DISPID_DOM_DATA_APPEND)]
HRESULT appendData( [in] BSTR data );
[id(DISPID_DOM_DATA_INSERT)]
- HRESULT insertData( [in] long offset,
+ HRESULT insertData( [in] LONG offset,
[in] BSTR data );
[id(DISPID_DOM_DATA_DELETE)]
- HRESULT deleteData( [in] long offset,
- [in] long count );
+ HRESULT deleteData( [in] LONG offset,
+ [in] LONG count );
[id(DISPID_DOM_DATA_REPLACE)]
- HRESULT replaceData( [in] long offset,
- [in] long count,
+ HRESULT replaceData( [in] LONG offset,
+ [in] LONG count,
[in] BSTR data );
}
interface IXMLDOMText : IXMLDOMCharacterData
{
[id(DISPID_DOM_TEXT_SPLITTEXT)]
- HRESULT splitText( [in] long offset,
+ HRESULT splitText( [in] LONG offset,
[out,retval] IXMLDOMText **rightHandTextNode );
}
interface IXMLDOMParseError : IDispatch
{
[propget, id(DISPID_VALUE)]
- HRESULT errorCode([retval, out] long *errCode);
+ HRESULT errorCode([retval, out] LONG *errCode);
[propget, id(DISPID_DOM_ERROR_URL)]
HRESULT url([retval, out] BSTR *p);
HRESULT srcText([retval, out] BSTR *p);
[propget, id(DISPID_DOM_ERROR_LINE)]
- HRESULT line([retval, out] long *lineNo);
+ HRESULT line([retval, out] LONG *lineNo);
[propget, id(DISPID_DOM_ERROR_LINEPOS)]
- HRESULT linepos([retval, out] long * linePos);
+ HRESULT linepos([retval, out] LONG * linePos);
[propget, id(DISPID_DOM_ERROR_FILEPOS)]
- HRESULT filepos([retval, out] long * filePos);
+ HRESULT filepos([retval, out] LONG * filePos);
}
+[
+ hidden,
+ uuid(3efaa427-272f-11d2-836f-0000f87a7782)
+]
+dispinterface XMLDOMDocumentEvents
+{
+ properties:
+ methods:
+ [id(DISPID_XMLDOMEVENT_ONDATAAVAILABLE)]
+ HRESULT ondataavailable();
+
+ [id(DISPID_XMLDOMEVENT_ONREADYSTATECHANGE)]
+ HRESULT onreadystatechange();
+}
[
-uuid(2933bf90-7b36-11d2-b20e-00c04f983e60)
+ helpstring("XML DOM Document"),
+ progid("Microsoft.XMLDOM.1.0"),
+ vi_progid("Microsoft.XMLDOM"),
+ threading(both),
+ version(1.0),
+ uuid(2933bf90-7b36-11d2-b20e-00c04f983e60)
]
coclass DOMDocument
{
}
[
-uuid(2933bf91-7b36-11d2-b20e-00c04f983e60)
+ helpstring("Free Threaded XML DOM Document"),
+ progid("Microsoft.FreeThreadedXMLDOM.1.0"),
+ vi_progid("Microsoft.FreeThreadedXMLDOM"),
+ threading(both),
+ version(1.0),
+ uuid(2933bf91-7b36-11d2-b20e-00c04f983e60)
]
coclass DOMFreeThreadedDocument
{
HRESULT abort();
[propget, id(7)]
- HRESULT status([out, retval] long *plStatus);
+ HRESULT status([out, retval] LONG *plStatus);
[propget, id(8)]
HRESULT statusText([out, retval] BSTR *bstrStatus);
HRESULT responseStream([out, retval] VARIANT *pvarBody);
[propget, id(13)]
- HRESULT readyState([out, retval] long *plState);
+ HRESULT readyState([out, retval] LONG *plState);
[propput, id(14)]
HRESULT onreadystatechange([in] IDispatch *pReadyStateSink);
}
[
-uuid(ed8c108e-4349-11d2-91a4-00c04f7969e8)
+ helpstring("XML HTTP Request"),
+ progid("Microsoft.XMLHTTP.1.0"),
+ vi_progid("Microsoft.XMLHTTP"),
+ threading(apartment),
+ version(1.0),
+ uuid(ed8c108e-4349-11d2-91a4-00c04f7969e8)
]
coclass XMLHTTPRequest
{