Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1807 lines
56 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 13.00.9076.3 (8cb5a81c).
  2. //
  3. // e:\nt\ds\security\passport\common\schema\obj\ia64\msxml.tlh
  4. //
  5. // C++ source equivalent of Win32 type library msxml.dll
  6. // compiler-generated file created 04/17/01 at 14:47:29 - DO NOT EDIT!
  7. #pragma once
  8. #pragma pack(push, 8)
  9. #include <comdef.h>
  10. namespace MSXML {
  11. //
  12. // Forward references and typedefs
  13. //
  14. struct __declspec(uuid("d63e0ce2-a0a2-11d0-9c02-00c04fc99c8e"))
  15. /* LIBID */ __MSXML;
  16. struct __declspec(uuid("65725580-9b5d-11d0-9bfe-00c04fc99c8e"))
  17. /* dual interface */ IXMLElementCollection;
  18. struct __declspec(uuid("f52e2b61-18a1-11d1-b105-00805f49916b"))
  19. /* dual interface */ IXMLDocument;
  20. struct __declspec(uuid("3f7f31ac-e15f-11d0-9c25-00c04fc99c8e"))
  21. /* dual interface */ IXMLElement;
  22. struct __declspec(uuid("2b8de2fe-8d2d-11d1-b2fc-00c04fd915a9"))
  23. /* interface */ IXMLDocument2;
  24. struct __declspec(uuid("2b8de2ff-8d2d-11d1-b2fc-00c04fd915a9"))
  25. /* dual interface */ IXMLElement2;
  26. struct __declspec(uuid("d4d4a0fc-3b73-11d1-b2b4-00c04fb92596"))
  27. /* dual interface */ IXMLAttribute;
  28. struct __declspec(uuid("948c5ad3-c58d-11d0-9c0b-00c04fc99c8e"))
  29. /* interface */ IXMLError;
  30. struct _xml_error;
  31. struct __declspec(uuid("3efaa410-272f-11d2-836f-0000f87a7782"))
  32. /* dual interface */ IDOMImplementation;
  33. struct __declspec(uuid("3efaa411-272f-11d2-836f-0000f87a7782"))
  34. /* dual interface */ IDOMNode;
  35. typedef enum tagDOMNodeType DOMNodeType;
  36. enum tagDOMNodeType;
  37. struct __declspec(uuid("3efaa416-272f-11d2-836f-0000f87a7782"))
  38. /* dual interface */ IDOMNodeList;
  39. struct __declspec(uuid("3efaa418-272f-11d2-836f-0000f87a7782"))
  40. /* dual interface */ IDOMNamedNodeMap;
  41. struct __declspec(uuid("3efaa414-272f-11d2-836f-0000f87a7782"))
  42. /* dual interface */ IDOMDocument;
  43. struct __declspec(uuid("3efaa421-272f-11d2-836f-0000f87a7782"))
  44. /* dual interface */ IDOMDocumentType;
  45. struct __declspec(uuid("3efaa41c-272f-11d2-836f-0000f87a7782"))
  46. /* dual interface */ IDOMElement;
  47. struct __declspec(uuid("3efaa41b-272f-11d2-836f-0000f87a7782"))
  48. /* dual interface */ IDOMAttribute;
  49. struct __declspec(uuid("3efaa413-272f-11d2-836f-0000f87a7782"))
  50. /* dual interface */ IDOMDocumentFragment;
  51. struct __declspec(uuid("9cafc72d-272e-11d2-836f-0000f87a7782"))
  52. /* dual interface */ IDOMText;
  53. struct __declspec(uuid("3efaa41a-272f-11d2-836f-0000f87a7782"))
  54. /* dual interface */ IDOMCharacterData;
  55. struct __declspec(uuid("3efaa41e-272f-11d2-836f-0000f87a7782"))
  56. /* dual interface */ IDOMComment;
  57. struct __declspec(uuid("3efaa420-272f-11d2-836f-0000f87a7782"))
  58. /* dual interface */ IDOMCDATASection;
  59. struct __declspec(uuid("3efaa41f-272f-11d2-836f-0000f87a7782"))
  60. /* dual interface */ IDOMProcessingInstruction;
  61. struct __declspec(uuid("3efaa424-272f-11d2-836f-0000f87a7782"))
  62. /* dual interface */ IDOMEntityReference;
  63. struct __declspec(uuid("3efaa422-272f-11d2-836f-0000f87a7782"))
  64. /* dual interface */ IDOMNotation;
  65. struct __declspec(uuid("3efaa423-272f-11d2-836f-0000f87a7782"))
  66. /* dual interface */ IDOMEntity;
  67. struct __declspec(uuid("3efaa412-272f-11d2-836f-0000f87a7782"))
  68. /* dual interface */ IXMLDOMNode;
  69. struct __declspec(uuid("3efaa417-272f-11d2-836f-0000f87a7782"))
  70. /* dual interface */ IXMLDOMNodeList;
  71. struct __declspec(uuid("3efaa415-272f-11d2-836f-0000f87a7782"))
  72. /* dual interface */ IXMLDOMDocument;
  73. struct __declspec(uuid("3efaa426-272f-11d2-836f-0000f87a7782"))
  74. /* dual interface */ IDOMParseError;
  75. struct __declspec(uuid("3efaa419-272f-11d2-836f-0000f87a7782"))
  76. /* dual interface */ IXMLDOMNamedNodeMap;
  77. struct __declspec(uuid("3efaa425-272f-11d2-836f-0000f87a7782"))
  78. /* dual interface */ IXTLRuntime;
  79. struct __declspec(uuid("3efaa427-272f-11d2-836f-0000f87a7782"))
  80. /* dispinterface */ XMLDOMDocumentEvents;
  81. struct /* coclass */ DOMDocument;
  82. struct __declspec(uuid("ed8c108d-4349-11d2-91a4-00c04f7969e8"))
  83. /* dual interface */ IXMLHttpRequest;
  84. struct /* coclass */ XMLHTTPRequest;
  85. struct __declspec(uuid("310afa62-0575-11d2-9ca9-0060b0ec3d39"))
  86. /* dual interface */ IXMLDSOControl;
  87. struct /* coclass */ XMLDSOControl;
  88. typedef enum tagXMLEMEM_TYPE XMLELEM_TYPE;
  89. enum tagXMLEMEM_TYPE;
  90. struct /* coclass */ XMLDocument;
  91. //
  92. // Smart pointer typedef declarations
  93. //
  94. _COM_SMARTPTR_TYPEDEF(IXMLElementCollection, __uuidof(IXMLElementCollection));
  95. _COM_SMARTPTR_TYPEDEF(IXMLDocument, __uuidof(IXMLDocument));
  96. _COM_SMARTPTR_TYPEDEF(IXMLElement, __uuidof(IXMLElement));
  97. _COM_SMARTPTR_TYPEDEF(IXMLDocument2, __uuidof(IXMLDocument2));
  98. _COM_SMARTPTR_TYPEDEF(IXMLElement2, __uuidof(IXMLElement2));
  99. _COM_SMARTPTR_TYPEDEF(IXMLAttribute, __uuidof(IXMLAttribute));
  100. _COM_SMARTPTR_TYPEDEF(IXMLError, __uuidof(IXMLError));
  101. _COM_SMARTPTR_TYPEDEF(IDOMImplementation, __uuidof(IDOMImplementation));
  102. _COM_SMARTPTR_TYPEDEF(IDOMNode, __uuidof(IDOMNode));
  103. _COM_SMARTPTR_TYPEDEF(IDOMNodeList, __uuidof(IDOMNodeList));
  104. _COM_SMARTPTR_TYPEDEF(IDOMNamedNodeMap, __uuidof(IDOMNamedNodeMap));
  105. _COM_SMARTPTR_TYPEDEF(IDOMDocument, __uuidof(IDOMDocument));
  106. _COM_SMARTPTR_TYPEDEF(IDOMDocumentType, __uuidof(IDOMDocumentType));
  107. _COM_SMARTPTR_TYPEDEF(IDOMElement, __uuidof(IDOMElement));
  108. _COM_SMARTPTR_TYPEDEF(IDOMAttribute, __uuidof(IDOMAttribute));
  109. _COM_SMARTPTR_TYPEDEF(IDOMDocumentFragment, __uuidof(IDOMDocumentFragment));
  110. _COM_SMARTPTR_TYPEDEF(IDOMCharacterData, __uuidof(IDOMCharacterData));
  111. _COM_SMARTPTR_TYPEDEF(IDOMText, __uuidof(IDOMText));
  112. _COM_SMARTPTR_TYPEDEF(IDOMComment, __uuidof(IDOMComment));
  113. _COM_SMARTPTR_TYPEDEF(IDOMCDATASection, __uuidof(IDOMCDATASection));
  114. _COM_SMARTPTR_TYPEDEF(IDOMProcessingInstruction, __uuidof(IDOMProcessingInstruction));
  115. _COM_SMARTPTR_TYPEDEF(IDOMEntityReference, __uuidof(IDOMEntityReference));
  116. _COM_SMARTPTR_TYPEDEF(IDOMNotation, __uuidof(IDOMNotation));
  117. _COM_SMARTPTR_TYPEDEF(IDOMEntity, __uuidof(IDOMEntity));
  118. _COM_SMARTPTR_TYPEDEF(IXMLDOMNode, __uuidof(IXMLDOMNode));
  119. _COM_SMARTPTR_TYPEDEF(IXMLDOMNodeList, __uuidof(IXMLDOMNodeList));
  120. _COM_SMARTPTR_TYPEDEF(IXMLDOMDocument, __uuidof(IXMLDOMDocument));
  121. _COM_SMARTPTR_TYPEDEF(IDOMParseError, __uuidof(IDOMParseError));
  122. _COM_SMARTPTR_TYPEDEF(IXMLDOMNamedNodeMap, __uuidof(IXMLDOMNamedNodeMap));
  123. _COM_SMARTPTR_TYPEDEF(IXTLRuntime, __uuidof(IXTLRuntime));
  124. _COM_SMARTPTR_TYPEDEF(XMLDOMDocumentEvents, __uuidof(XMLDOMDocumentEvents));
  125. _COM_SMARTPTR_TYPEDEF(IXMLHttpRequest, __uuidof(IXMLHttpRequest));
  126. _COM_SMARTPTR_TYPEDEF(IXMLDSOControl, __uuidof(IXMLDSOControl));
  127. //
  128. // Type library items
  129. //
  130. struct __declspec(uuid("65725580-9b5d-11d0-9bfe-00c04fc99c8e"))
  131. IXMLElementCollection : IDispatch
  132. {
  133. //
  134. // Property data
  135. //
  136. __declspec(property(get=Getlength,put=Putlength))
  137. long length;
  138. __declspec(property(get=Get_newEnum))
  139. IUnknownPtr _newEnum;
  140. //
  141. // Wrapper methods for error-handling
  142. //
  143. void Putlength (
  144. long p );
  145. long Getlength ( );
  146. IUnknownPtr Get_newEnum ( );
  147. IDispatchPtr item (
  148. const _variant_t & var1 = vtMissing,
  149. const _variant_t & var2 = vtMissing );
  150. //
  151. // Raw methods provided by interface
  152. //
  153. virtual HRESULT __stdcall put_length (
  154. /*[in]*/ long p ) = 0;
  155. virtual HRESULT __stdcall get_length (
  156. /*[out,retval]*/ long * p ) = 0;
  157. virtual HRESULT __stdcall get__newEnum (
  158. /*[out,retval]*/ IUnknown * * ppUnk ) = 0;
  159. virtual HRESULT __stdcall raw_item (
  160. /*[in]*/ VARIANT var1,
  161. /*[in]*/ VARIANT var2,
  162. /*[out,retval]*/ IDispatch * * ppDisp ) = 0;
  163. };
  164. struct __declspec(uuid("f52e2b61-18a1-11d1-b105-00805f49916b"))
  165. IXMLDocument : IDispatch
  166. {
  167. //
  168. // Property data
  169. //
  170. __declspec(property(get=Getroot))
  171. IXMLElementPtr root;
  172. __declspec(property(get=GetfileSize))
  173. _bstr_t fileSize;
  174. __declspec(property(get=GetfileModifiedDate))
  175. _bstr_t fileModifiedDate;
  176. __declspec(property(get=GetfileUpdatedDate))
  177. _bstr_t fileUpdatedDate;
  178. __declspec(property(get=GetURL,put=PutURL))
  179. _bstr_t URL;
  180. __declspec(property(get=GetmimeType))
  181. _bstr_t mimeType;
  182. __declspec(property(get=GetreadyState))
  183. long readyState;
  184. __declspec(property(get=Getcharset,put=Putcharset))
  185. _bstr_t charset;
  186. __declspec(property(get=Getversion))
  187. _bstr_t version;
  188. __declspec(property(get=Getdoctype))
  189. _bstr_t doctype;
  190. __declspec(property(get=GetdtdURL))
  191. _bstr_t dtdURL;
  192. //
  193. // Wrapper methods for error-handling
  194. //
  195. IXMLElementPtr Getroot ( );
  196. _bstr_t GetfileSize ( );
  197. _bstr_t GetfileModifiedDate ( );
  198. _bstr_t GetfileUpdatedDate ( );
  199. _bstr_t GetURL ( );
  200. void PutURL (
  201. _bstr_t p );
  202. _bstr_t GetmimeType ( );
  203. long GetreadyState ( );
  204. _bstr_t Getcharset ( );
  205. void Putcharset (
  206. _bstr_t p );
  207. _bstr_t Getversion ( );
  208. _bstr_t Getdoctype ( );
  209. _bstr_t GetdtdURL ( );
  210. IXMLElementPtr createElement (
  211. const _variant_t & vType,
  212. const _variant_t & var1 = vtMissing );
  213. //
  214. // Raw methods provided by interface
  215. //
  216. virtual HRESULT __stdcall get_root (
  217. /*[out,retval]*/ struct IXMLElement * * p ) = 0;
  218. virtual HRESULT __stdcall get_fileSize (
  219. /*[out,retval]*/ BSTR * p ) = 0;
  220. virtual HRESULT __stdcall get_fileModifiedDate (
  221. /*[out,retval]*/ BSTR * p ) = 0;
  222. virtual HRESULT __stdcall get_fileUpdatedDate (
  223. /*[out,retval]*/ BSTR * p ) = 0;
  224. virtual HRESULT __stdcall get_URL (
  225. /*[out,retval]*/ BSTR * p ) = 0;
  226. virtual HRESULT __stdcall put_URL (
  227. /*[in]*/ BSTR p ) = 0;
  228. virtual HRESULT __stdcall get_mimeType (
  229. /*[out,retval]*/ BSTR * p ) = 0;
  230. virtual HRESULT __stdcall get_readyState (
  231. /*[out,retval]*/ long * pl ) = 0;
  232. virtual HRESULT __stdcall get_charset (
  233. /*[out,retval]*/ BSTR * p ) = 0;
  234. virtual HRESULT __stdcall put_charset (
  235. /*[in]*/ BSTR p ) = 0;
  236. virtual HRESULT __stdcall get_version (
  237. /*[out,retval]*/ BSTR * p ) = 0;
  238. virtual HRESULT __stdcall get_doctype (
  239. /*[out,retval]*/ BSTR * p ) = 0;
  240. virtual HRESULT __stdcall get_dtdURL (
  241. /*[out,retval]*/ BSTR * p ) = 0;
  242. virtual HRESULT __stdcall raw_createElement (
  243. /*[in]*/ VARIANT vType,
  244. /*[in]*/ VARIANT var1,
  245. /*[out,retval]*/ struct IXMLElement * * ppElem ) = 0;
  246. };
  247. struct __declspec(uuid("3f7f31ac-e15f-11d0-9c25-00c04fc99c8e"))
  248. IXMLElement : IDispatch
  249. {
  250. //
  251. // Property data
  252. //
  253. __declspec(property(get=GettagName,put=PuttagName))
  254. _bstr_t tagName;
  255. __declspec(property(get=Getparent))
  256. IXMLElementPtr parent;
  257. __declspec(property(get=Getchildren))
  258. IXMLElementCollectionPtr children;
  259. __declspec(property(get=Gettype))
  260. long type;
  261. __declspec(property(get=Gettext,put=Puttext))
  262. _bstr_t text;
  263. //
  264. // Wrapper methods for error-handling
  265. //
  266. _bstr_t GettagName ( );
  267. void PuttagName (
  268. _bstr_t p );
  269. IXMLElementPtr Getparent ( );
  270. HRESULT setAttribute (
  271. _bstr_t strPropertyName,
  272. const _variant_t & PropertyValue );
  273. _variant_t getAttribute (
  274. _bstr_t strPropertyName );
  275. HRESULT removeAttribute (
  276. _bstr_t strPropertyName );
  277. IXMLElementCollectionPtr Getchildren ( );
  278. long Gettype ( );
  279. _bstr_t Gettext ( );
  280. void Puttext (
  281. _bstr_t p );
  282. HRESULT addChild (
  283. struct IXMLElement * pChildElem,
  284. long lIndex,
  285. long lReserved );
  286. HRESULT removeChild (
  287. struct IXMLElement * pChildElem );
  288. //
  289. // Raw methods provided by interface
  290. //
  291. virtual HRESULT __stdcall get_tagName (
  292. /*[out,retval]*/ BSTR * p ) = 0;
  293. virtual HRESULT __stdcall put_tagName (
  294. /*[in]*/ BSTR p ) = 0;
  295. virtual HRESULT __stdcall get_parent (
  296. /*[out,retval]*/ struct IXMLElement * * ppParent ) = 0;
  297. virtual HRESULT __stdcall raw_setAttribute (
  298. /*[in]*/ BSTR strPropertyName,
  299. /*[in]*/ VARIANT PropertyValue ) = 0;
  300. virtual HRESULT __stdcall raw_getAttribute (
  301. /*[in]*/ BSTR strPropertyName,
  302. /*[out,retval]*/ VARIANT * PropertyValue ) = 0;
  303. virtual HRESULT __stdcall raw_removeAttribute (
  304. /*[in]*/ BSTR strPropertyName ) = 0;
  305. virtual HRESULT __stdcall get_children (
  306. /*[out,retval]*/ struct IXMLElementCollection * * pp ) = 0;
  307. virtual HRESULT __stdcall get_type (
  308. /*[out,retval]*/ long * plType ) = 0;
  309. virtual HRESULT __stdcall get_text (
  310. /*[out,retval]*/ BSTR * p ) = 0;
  311. virtual HRESULT __stdcall put_text (
  312. /*[in]*/ BSTR p ) = 0;
  313. virtual HRESULT __stdcall raw_addChild (
  314. /*[in]*/ struct IXMLElement * pChildElem,
  315. long lIndex,
  316. long lReserved ) = 0;
  317. virtual HRESULT __stdcall raw_removeChild (
  318. /*[in]*/ struct IXMLElement * pChildElem ) = 0;
  319. };
  320. struct __declspec(uuid("2b8de2fe-8d2d-11d1-b2fc-00c04fd915a9"))
  321. IXMLDocument2 : IDispatch
  322. {
  323. //
  324. // Property data
  325. //
  326. __declspec(property(get=Getroot))
  327. IXMLElement2Ptr root;
  328. __declspec(property(get=GetfileSize))
  329. _bstr_t fileSize;
  330. __declspec(property(get=GetfileModifiedDate))
  331. _bstr_t fileModifiedDate;
  332. __declspec(property(get=GetfileUpdatedDate))
  333. _bstr_t fileUpdatedDate;
  334. __declspec(property(get=GetURL,put=PutURL))
  335. _bstr_t URL;
  336. __declspec(property(get=GetmimeType))
  337. _bstr_t mimeType;
  338. __declspec(property(get=GetreadyState))
  339. long readyState;
  340. __declspec(property(get=Getcharset,put=Putcharset))
  341. _bstr_t charset;
  342. __declspec(property(get=Getversion))
  343. _bstr_t version;
  344. __declspec(property(get=Getdoctype))
  345. _bstr_t doctype;
  346. __declspec(property(get=GetdtdURL))
  347. _bstr_t dtdURL;
  348. __declspec(property(get=Getasync,put=Putasync))
  349. VARIANT_BOOL async;
  350. //
  351. // Wrapper methods for error-handling
  352. //
  353. IXMLElement2Ptr Getroot ( );
  354. _bstr_t GetfileSize ( );
  355. _bstr_t GetfileModifiedDate ( );
  356. _bstr_t GetfileUpdatedDate ( );
  357. _bstr_t GetURL ( );
  358. void PutURL (
  359. _bstr_t p );
  360. _bstr_t GetmimeType ( );
  361. long GetreadyState ( );
  362. _bstr_t Getcharset ( );
  363. void Putcharset (
  364. _bstr_t p );
  365. _bstr_t Getversion ( );
  366. _bstr_t Getdoctype ( );
  367. _bstr_t GetdtdURL ( );
  368. IXMLElement2Ptr createElement (
  369. const _variant_t & vType,
  370. const _variant_t & var1 = vtMissing );
  371. VARIANT_BOOL Getasync ( );
  372. void Putasync (
  373. VARIANT_BOOL pf );
  374. //
  375. // Raw methods provided by interface
  376. //
  377. virtual HRESULT __stdcall get_root (
  378. /*[out,retval]*/ struct IXMLElement2 * * p ) = 0;
  379. virtual HRESULT __stdcall get_fileSize (
  380. /*[out,retval]*/ BSTR * p ) = 0;
  381. virtual HRESULT __stdcall get_fileModifiedDate (
  382. /*[out,retval]*/ BSTR * p ) = 0;
  383. virtual HRESULT __stdcall get_fileUpdatedDate (
  384. /*[out,retval]*/ BSTR * p ) = 0;
  385. virtual HRESULT __stdcall get_URL (
  386. /*[out,retval]*/ BSTR * p ) = 0;
  387. virtual HRESULT __stdcall put_URL (
  388. /*[in]*/ BSTR p ) = 0;
  389. virtual HRESULT __stdcall get_mimeType (
  390. /*[out,retval]*/ BSTR * p ) = 0;
  391. virtual HRESULT __stdcall get_readyState (
  392. /*[out,retval]*/ long * pl ) = 0;
  393. virtual HRESULT __stdcall get_charset (
  394. /*[out,retval]*/ BSTR * p ) = 0;
  395. virtual HRESULT __stdcall put_charset (
  396. /*[in]*/ BSTR p ) = 0;
  397. virtual HRESULT __stdcall get_version (
  398. /*[out,retval]*/ BSTR * p ) = 0;
  399. virtual HRESULT __stdcall get_doctype (
  400. /*[out,retval]*/ BSTR * p ) = 0;
  401. virtual HRESULT __stdcall get_dtdURL (
  402. /*[out,retval]*/ BSTR * p ) = 0;
  403. virtual HRESULT __stdcall raw_createElement (
  404. /*[in]*/ VARIANT vType,
  405. /*[in]*/ VARIANT var1,
  406. /*[out,retval]*/ struct IXMLElement2 * * ppElem ) = 0;
  407. virtual HRESULT __stdcall get_async (
  408. /*[out,retval]*/ VARIANT_BOOL * pf ) = 0;
  409. virtual HRESULT __stdcall put_async (
  410. /*[in]*/ VARIANT_BOOL pf ) = 0;
  411. };
  412. struct __declspec(uuid("2b8de2ff-8d2d-11d1-b2fc-00c04fd915a9"))
  413. IXMLElement2 : IDispatch
  414. {
  415. //
  416. // Property data
  417. //
  418. __declspec(property(get=GettagName,put=PuttagName))
  419. _bstr_t tagName;
  420. __declspec(property(get=Getparent))
  421. IXMLElement2Ptr parent;
  422. __declspec(property(get=Getchildren))
  423. IXMLElementCollectionPtr children;
  424. __declspec(property(get=Gettype))
  425. long type;
  426. __declspec(property(get=Gettext,put=Puttext))
  427. _bstr_t text;
  428. __declspec(property(get=Getattributes))
  429. IXMLElementCollectionPtr attributes;
  430. //
  431. // Wrapper methods for error-handling
  432. //
  433. _bstr_t GettagName ( );
  434. void PuttagName (
  435. _bstr_t p );
  436. IXMLElement2Ptr Getparent ( );
  437. HRESULT setAttribute (
  438. _bstr_t strPropertyName,
  439. const _variant_t & PropertyValue );
  440. _variant_t getAttribute (
  441. _bstr_t strPropertyName );
  442. HRESULT removeAttribute (
  443. _bstr_t strPropertyName );
  444. IXMLElementCollectionPtr Getchildren ( );
  445. long Gettype ( );
  446. _bstr_t Gettext ( );
  447. void Puttext (
  448. _bstr_t p );
  449. HRESULT addChild (
  450. struct IXMLElement2 * pChildElem,
  451. long lIndex,
  452. long lReserved );
  453. HRESULT removeChild (
  454. struct IXMLElement2 * pChildElem );
  455. IXMLElementCollectionPtr Getattributes ( );
  456. //
  457. // Raw methods provided by interface
  458. //
  459. virtual HRESULT __stdcall get_tagName (
  460. /*[out,retval]*/ BSTR * p ) = 0;
  461. virtual HRESULT __stdcall put_tagName (
  462. /*[in]*/ BSTR p ) = 0;
  463. virtual HRESULT __stdcall get_parent (
  464. /*[out,retval]*/ struct IXMLElement2 * * ppParent ) = 0;
  465. virtual HRESULT __stdcall raw_setAttribute (
  466. /*[in]*/ BSTR strPropertyName,
  467. /*[in]*/ VARIANT PropertyValue ) = 0;
  468. virtual HRESULT __stdcall raw_getAttribute (
  469. /*[in]*/ BSTR strPropertyName,
  470. /*[out,retval]*/ VARIANT * PropertyValue ) = 0;
  471. virtual HRESULT __stdcall raw_removeAttribute (
  472. /*[in]*/ BSTR strPropertyName ) = 0;
  473. virtual HRESULT __stdcall get_children (
  474. /*[out,retval]*/ struct IXMLElementCollection * * pp ) = 0;
  475. virtual HRESULT __stdcall get_type (
  476. /*[out,retval]*/ long * plType ) = 0;
  477. virtual HRESULT __stdcall get_text (
  478. /*[out,retval]*/ BSTR * p ) = 0;
  479. virtual HRESULT __stdcall put_text (
  480. /*[in]*/ BSTR p ) = 0;
  481. virtual HRESULT __stdcall raw_addChild (
  482. /*[in]*/ struct IXMLElement2 * pChildElem,
  483. long lIndex,
  484. long lReserved ) = 0;
  485. virtual HRESULT __stdcall raw_removeChild (
  486. /*[in]*/ struct IXMLElement2 * pChildElem ) = 0;
  487. virtual HRESULT __stdcall get_attributes (
  488. /*[out,retval]*/ struct IXMLElementCollection * * pp ) = 0;
  489. };
  490. struct __declspec(uuid("d4d4a0fc-3b73-11d1-b2b4-00c04fb92596"))
  491. IXMLAttribute : IDispatch
  492. {
  493. //
  494. // Property data
  495. //
  496. __declspec(property(get=Getname))
  497. _bstr_t name;
  498. __declspec(property(get=Getvalue))
  499. _bstr_t value;
  500. //
  501. // Wrapper methods for error-handling
  502. //
  503. _bstr_t Getname ( );
  504. _bstr_t Getvalue ( );
  505. //
  506. // Raw methods provided by interface
  507. //
  508. virtual HRESULT __stdcall get_name (
  509. /*[out,retval]*/ BSTR * n ) = 0;
  510. virtual HRESULT __stdcall get_value (
  511. /*[out,retval]*/ BSTR * v ) = 0;
  512. };
  513. struct __declspec(uuid("948c5ad3-c58d-11d0-9c0b-00c04fc99c8e"))
  514. IXMLError : IUnknown
  515. {
  516. //
  517. // Wrapper methods for error-handling
  518. //
  519. HRESULT GetErrorInfo (
  520. struct _xml_error * pErrorReturn );
  521. //
  522. // Raw methods provided by interface
  523. //
  524. virtual HRESULT __stdcall raw_GetErrorInfo (
  525. struct _xml_error * pErrorReturn ) = 0;
  526. };
  527. struct _xml_error
  528. {
  529. unsigned int _nLine;
  530. BSTR _pchBuf;
  531. unsigned int _cchBuf;
  532. unsigned int _ich;
  533. BSTR _pszFound;
  534. BSTR _pszExpected;
  535. unsigned long _reserved1;
  536. unsigned long _reserved2;
  537. };
  538. struct __declspec(uuid("3efaa410-272f-11d2-836f-0000f87a7782"))
  539. IDOMImplementation : IDispatch
  540. {
  541. //
  542. // Wrapper methods for error-handling
  543. //
  544. VARIANT_BOOL hasFeature (
  545. _bstr_t feature,
  546. _bstr_t version );
  547. //
  548. // Raw methods provided by interface
  549. //
  550. virtual HRESULT __stdcall raw_hasFeature (
  551. /*[in]*/ BSTR feature,
  552. /*[in]*/ BSTR version,
  553. /*[out,retval]*/ VARIANT_BOOL * hasFeature ) = 0;
  554. };
  555. struct __declspec(uuid("3efaa411-272f-11d2-836f-0000f87a7782"))
  556. IDOMNode : IDispatch
  557. {
  558. //
  559. // Property data
  560. //
  561. __declspec(property(get=GetnodeName))
  562. _bstr_t nodeName;
  563. __declspec(property(get=GetnodeValue,put=PutnodeValue))
  564. _variant_t nodeValue;
  565. __declspec(property(get=GetnodeType))
  566. DOMNodeType nodeType;
  567. __declspec(property(get=GetparentNode))
  568. IDOMNodePtr parentNode;
  569. __declspec(property(get=GetchildNodes))
  570. IDOMNodeListPtr childNodes;
  571. __declspec(property(get=GetfirstChild))
  572. IDOMNodePtr firstChild;
  573. __declspec(property(get=GetlastChild))
  574. IDOMNodePtr lastChild;
  575. __declspec(property(get=GetpreviousSibling))
  576. IDOMNodePtr previousSibling;
  577. __declspec(property(get=GetnextSibling))
  578. IDOMNodePtr nextSibling;
  579. __declspec(property(get=Getattributes))
  580. IDOMNamedNodeMapPtr attributes;
  581. __declspec(property(get=GetownerDocument))
  582. IDOMDocumentPtr ownerDocument;
  583. //
  584. // Wrapper methods for error-handling
  585. //
  586. _bstr_t GetnodeName ( );
  587. _variant_t GetnodeValue ( );
  588. void PutnodeValue (
  589. const _variant_t & value );
  590. DOMNodeType GetnodeType ( );
  591. IDOMNodePtr GetparentNode ( );
  592. IDOMNodeListPtr GetchildNodes ( );
  593. IDOMNodePtr GetfirstChild ( );
  594. IDOMNodePtr GetlastChild ( );
  595. IDOMNodePtr GetpreviousSibling ( );
  596. IDOMNodePtr GetnextSibling ( );
  597. IDOMNamedNodeMapPtr Getattributes ( );
  598. IDOMNodePtr insertBefore (
  599. struct IDOMNode * newChild,
  600. const _variant_t & refChild );
  601. IDOMNodePtr replaceChild (
  602. struct IDOMNode * newChild,
  603. struct IDOMNode * oldChild );
  604. IDOMNodePtr removeChild (
  605. struct IDOMNode * childNode );
  606. IDOMNodePtr appendChild (
  607. struct IDOMNode * newChild );
  608. VARIANT_BOOL hasChildNodes ( );
  609. IDOMDocumentPtr GetownerDocument ( );
  610. IDOMNodePtr cloneNode (
  611. VARIANT_BOOL deep );
  612. //
  613. // Raw methods provided by interface
  614. //
  615. virtual HRESULT __stdcall get_nodeName (
  616. /*[out,retval]*/ BSTR * name ) = 0;
  617. virtual HRESULT __stdcall get_nodeValue (
  618. /*[out,retval]*/ VARIANT * value ) = 0;
  619. virtual HRESULT __stdcall put_nodeValue (
  620. /*[in]*/ VARIANT value ) = 0;
  621. virtual HRESULT __stdcall get_nodeType (
  622. /*[out,retval]*/ DOMNodeType * type ) = 0;
  623. virtual HRESULT __stdcall get_parentNode (
  624. /*[out,retval]*/ struct IDOMNode * * parent ) = 0;
  625. virtual HRESULT __stdcall get_childNodes (
  626. /*[out,retval]*/ struct IDOMNodeList * * childList ) = 0;
  627. virtual HRESULT __stdcall get_firstChild (
  628. /*[out,retval]*/ struct IDOMNode * * firstChild ) = 0;
  629. virtual HRESULT __stdcall get_lastChild (
  630. /*[out,retval]*/ struct IDOMNode * * lastChild ) = 0;
  631. virtual HRESULT __stdcall get_previousSibling (
  632. /*[out,retval]*/ struct IDOMNode * * previousSibling ) = 0;
  633. virtual HRESULT __stdcall get_nextSibling (
  634. /*[out,retval]*/ struct IDOMNode * * nextSibling ) = 0;
  635. virtual HRESULT __stdcall get_attributes (
  636. /*[out,retval]*/ struct IDOMNamedNodeMap * * atrributeMap ) = 0;
  637. virtual HRESULT __stdcall raw_insertBefore (
  638. /*[in]*/ struct IDOMNode * newChild,
  639. /*[in]*/ VARIANT refChild,
  640. /*[out,retval]*/ struct IDOMNode * * outNewChild ) = 0;
  641. virtual HRESULT __stdcall raw_replaceChild (
  642. /*[in]*/ struct IDOMNode * newChild,
  643. /*[in]*/ struct IDOMNode * oldChild,
  644. /*[out,retval]*/ struct IDOMNode * * outOldChild ) = 0;
  645. virtual HRESULT __stdcall raw_removeChild (
  646. /*[in]*/ struct IDOMNode * childNode,
  647. /*[out,retval]*/ struct IDOMNode * * oldChild ) = 0;
  648. virtual HRESULT __stdcall raw_appendChild (
  649. /*[in]*/ struct IDOMNode * newChild,
  650. /*[out,retval]*/ struct IDOMNode * * outNewChild ) = 0;
  651. virtual HRESULT __stdcall raw_hasChildNodes (
  652. /*[out,retval]*/ VARIANT_BOOL * hasChild ) = 0;
  653. virtual HRESULT __stdcall get_ownerDocument (
  654. /*[out,retval]*/ struct IDOMDocument * * DOMDocument ) = 0;
  655. virtual HRESULT __stdcall raw_cloneNode (
  656. /*[in]*/ VARIANT_BOOL deep,
  657. /*[out,retval]*/ struct IDOMNode * * cloneRoot ) = 0;
  658. };
  659. enum tagDOMNodeType
  660. {
  661. NODE_INVALID = 0,
  662. NODE_ELEMENT = 1,
  663. NODE_ATTRIBUTE = 2,
  664. NODE_TEXT = 3,
  665. NODE_CDATA_SECTION = 4,
  666. NODE_ENTITY_REFERENCE = 5,
  667. NODE_ENTITY = 6,
  668. NODE_PROCESSING_INSTRUCTION = 7,
  669. NODE_COMMENT = 8,
  670. NODE_DOCUMENT = 9,
  671. NODE_DOCUMENT_TYPE = 10,
  672. NODE_DOCUMENT_FRAGMENT = 11,
  673. NODE_NOTATION = 12
  674. };
  675. struct __declspec(uuid("3efaa416-272f-11d2-836f-0000f87a7782"))
  676. IDOMNodeList : IDispatch
  677. {
  678. //
  679. // Property data
  680. //
  681. __declspec(property(get=Getitem))
  682. IDOMNodePtr item[];
  683. __declspec(property(get=Getlength))
  684. long length;
  685. //
  686. // Wrapper methods for error-handling
  687. //
  688. IDOMNodePtr Getitem (
  689. long index );
  690. long Getlength ( );
  691. //
  692. // Raw methods provided by interface
  693. //
  694. virtual HRESULT __stdcall get_item (
  695. /*[in]*/ long index,
  696. /*[out,retval]*/ struct IDOMNode * * listItem ) = 0;
  697. virtual HRESULT __stdcall get_length (
  698. /*[out,retval]*/ long * listLength ) = 0;
  699. };
  700. struct __declspec(uuid("3efaa418-272f-11d2-836f-0000f87a7782"))
  701. IDOMNamedNodeMap : IDispatch
  702. {
  703. //
  704. // Property data
  705. //
  706. __declspec(property(get=Getitem))
  707. IDOMNodePtr item[];
  708. __declspec(property(get=Getlength))
  709. long length;
  710. //
  711. // Wrapper methods for error-handling
  712. //
  713. IDOMNodePtr getNamedItem (
  714. _bstr_t name );
  715. IDOMNodePtr setNamedItem (
  716. struct IDOMNode * newItem );
  717. IDOMNodePtr removeNamedItem (
  718. _bstr_t name );
  719. IDOMNodePtr Getitem (
  720. long index );
  721. long Getlength ( );
  722. //
  723. // Raw methods provided by interface
  724. //
  725. virtual HRESULT __stdcall raw_getNamedItem (
  726. /*[in]*/ BSTR name,
  727. /*[out,retval]*/ struct IDOMNode * * namedItem ) = 0;
  728. virtual HRESULT __stdcall raw_setNamedItem (
  729. /*[in]*/ struct IDOMNode * newItem,
  730. /*[out,retval]*/ struct IDOMNode * * nameItem ) = 0;
  731. virtual HRESULT __stdcall raw_removeNamedItem (
  732. /*[in]*/ BSTR name,
  733. /*[out,retval]*/ struct IDOMNode * * namedItem ) = 0;
  734. virtual HRESULT __stdcall get_item (
  735. /*[in]*/ long index,
  736. /*[out,retval]*/ struct IDOMNode * * listItem ) = 0;
  737. virtual HRESULT __stdcall get_length (
  738. /*[out,retval]*/ long * listLength ) = 0;
  739. };
  740. struct __declspec(uuid("3efaa414-272f-11d2-836f-0000f87a7782"))
  741. IDOMDocument : IDOMNode
  742. {
  743. //
  744. // Property data
  745. //
  746. __declspec(property(get=Getdoctype))
  747. IDOMDocumentTypePtr doctype;
  748. __declspec(property(get=Getimplementation))
  749. IDOMImplementationPtr implementation;
  750. __declspec(property(get=GetdocumentElement,put=PutRefdocumentElement))
  751. IDOMElementPtr documentElement;
  752. //
  753. // Wrapper methods for error-handling
  754. //
  755. IDOMDocumentTypePtr Getdoctype ( );
  756. IDOMImplementationPtr Getimplementation ( );
  757. IDOMElementPtr GetdocumentElement ( );
  758. void PutRefdocumentElement (
  759. struct IDOMElement * DOMElement );
  760. IDOMElementPtr createElement (
  761. _bstr_t tagName );
  762. IDOMDocumentFragmentPtr createDocumentFragment ( );
  763. IDOMTextPtr createTextNode (
  764. _bstr_t data );
  765. IDOMCommentPtr createComment (
  766. _bstr_t data );
  767. IDOMCDATASectionPtr createCDATASection (
  768. _bstr_t data );
  769. IDOMProcessingInstructionPtr createProcessingInstruction (
  770. _bstr_t target,
  771. _bstr_t data );
  772. IDOMAttributePtr createAttribute (
  773. _bstr_t name );
  774. IDOMEntityReferencePtr createEntityReference (
  775. _bstr_t name );
  776. IDOMNodeListPtr getElementsByTagName (
  777. _bstr_t tagName );
  778. //
  779. // Raw methods provided by interface
  780. //
  781. virtual HRESULT __stdcall get_doctype (
  782. /*[out,retval]*/ struct IDOMDocumentType * * documentType ) = 0;
  783. virtual HRESULT __stdcall get_implementation (
  784. /*[out,retval]*/ struct IDOMImplementation * * impl ) = 0;
  785. virtual HRESULT __stdcall get_documentElement (
  786. /*[out,retval]*/ struct IDOMElement * * DOMElement ) = 0;
  787. virtual HRESULT __stdcall putref_documentElement (
  788. /*[in]*/ struct IDOMElement * DOMElement ) = 0;
  789. virtual HRESULT __stdcall raw_createElement (
  790. /*[in]*/ BSTR tagName,
  791. /*[out,retval]*/ struct IDOMElement * * element ) = 0;
  792. virtual HRESULT __stdcall raw_createDocumentFragment (
  793. /*[out,retval]*/ struct IDOMDocumentFragment * * docFrag ) = 0;
  794. virtual HRESULT __stdcall raw_createTextNode (
  795. /*[in]*/ BSTR data,
  796. /*[out,retval]*/ struct IDOMText * * text ) = 0;
  797. virtual HRESULT __stdcall raw_createComment (
  798. /*[in]*/ BSTR data,
  799. /*[out,retval]*/ struct IDOMComment * * comment ) = 0;
  800. virtual HRESULT __stdcall raw_createCDATASection (
  801. /*[in]*/ BSTR data,
  802. /*[out,retval]*/ struct IDOMCDATASection * * cdata ) = 0;
  803. virtual HRESULT __stdcall raw_createProcessingInstruction (
  804. /*[in]*/ BSTR target,
  805. /*[in]*/ BSTR data,
  806. /*[out,retval]*/ struct IDOMProcessingInstruction * * pi ) = 0;
  807. virtual HRESULT __stdcall raw_createAttribute (
  808. /*[in]*/ BSTR name,
  809. /*[out,retval]*/ struct IDOMAttribute * * attribute ) = 0;
  810. virtual HRESULT __stdcall raw_createEntityReference (
  811. /*[in]*/ BSTR name,
  812. /*[out,retval]*/ struct IDOMEntityReference * * entityRef ) = 0;
  813. virtual HRESULT __stdcall raw_getElementsByTagName (
  814. /*[in]*/ BSTR tagName,
  815. /*[out,retval]*/ struct IDOMNodeList * * resultList ) = 0;
  816. };
  817. struct __declspec(uuid("3efaa421-272f-11d2-836f-0000f87a7782"))
  818. IDOMDocumentType : IDOMNode
  819. {
  820. //
  821. // Property data
  822. //
  823. __declspec(property(get=Getname))
  824. _bstr_t name;
  825. __declspec(property(get=Getentities))
  826. IDOMNamedNodeMapPtr entities;
  827. __declspec(property(get=Getnotations))
  828. IDOMNamedNodeMapPtr notations;
  829. //
  830. // Wrapper methods for error-handling
  831. //
  832. _bstr_t Getname ( );
  833. IDOMNamedNodeMapPtr Getentities ( );
  834. IDOMNamedNodeMapPtr Getnotations ( );
  835. //
  836. // Raw methods provided by interface
  837. //
  838. virtual HRESULT __stdcall get_name (
  839. /*[out,retval]*/ BSTR * rootName ) = 0;
  840. virtual HRESULT __stdcall get_entities (
  841. /*[out,retval]*/ struct IDOMNamedNodeMap * * entityMap ) = 0;
  842. virtual HRESULT __stdcall get_notations (
  843. /*[out,retval]*/ struct IDOMNamedNodeMap * * notationMap ) = 0;
  844. };
  845. struct __declspec(uuid("3efaa41c-272f-11d2-836f-0000f87a7782"))
  846. IDOMElement : IDOMNode
  847. {
  848. //
  849. // Property data
  850. //
  851. __declspec(property(get=GettagName))
  852. _bstr_t tagName;
  853. //
  854. // Wrapper methods for error-handling
  855. //
  856. _bstr_t GettagName ( );
  857. _variant_t getAttribute (
  858. _bstr_t name );
  859. HRESULT setAttribute (
  860. _bstr_t name,
  861. const _variant_t & value );
  862. HRESULT removeAttribute (
  863. _bstr_t name );
  864. IDOMAttributePtr getAttributeNode (
  865. _bstr_t name );
  866. IDOMAttributePtr setAttributeNode (
  867. struct IDOMAttribute * DOMAttribute );
  868. IDOMAttributePtr removeAttributeNode (
  869. struct IDOMAttribute * DOMAttribute );
  870. IDOMNodeListPtr getElementsByTagName (
  871. _bstr_t tagName );
  872. HRESULT normalize ( );
  873. //
  874. // Raw methods provided by interface
  875. //
  876. virtual HRESULT __stdcall get_tagName (
  877. /*[out,retval]*/ BSTR * tagName ) = 0;
  878. virtual HRESULT __stdcall raw_getAttribute (
  879. /*[in]*/ BSTR name,
  880. /*[out,retval]*/ VARIANT * value ) = 0;
  881. virtual HRESULT __stdcall raw_setAttribute (
  882. /*[in]*/ BSTR name,
  883. /*[in]*/ VARIANT value ) = 0;
  884. virtual HRESULT __stdcall raw_removeAttribute (
  885. /*[in]*/ BSTR name ) = 0;
  886. virtual HRESULT __stdcall raw_getAttributeNode (
  887. /*[in]*/ BSTR name,
  888. /*[out,retval]*/ struct IDOMAttribute * * attributeNode ) = 0;
  889. virtual HRESULT __stdcall raw_setAttributeNode (
  890. /*[in]*/ struct IDOMAttribute * DOMAttribute,
  891. /*[out,retval]*/ struct IDOMAttribute * * attributeNode ) = 0;
  892. virtual HRESULT __stdcall raw_removeAttributeNode (
  893. /*[in]*/ struct IDOMAttribute * DOMAttribute,
  894. /*[out,retval]*/ struct IDOMAttribute * * attributeNode ) = 0;
  895. virtual HRESULT __stdcall raw_getElementsByTagName (
  896. /*[in]*/ BSTR tagName,
  897. /*[out,retval]*/ struct IDOMNodeList * * resultList ) = 0;
  898. virtual HRESULT __stdcall raw_normalize ( ) = 0;
  899. };
  900. struct __declspec(uuid("3efaa41b-272f-11d2-836f-0000f87a7782"))
  901. IDOMAttribute : IDOMNode
  902. {
  903. //
  904. // Property data
  905. //
  906. __declspec(property(get=Getvalue,put=Putvalue))
  907. _variant_t value;
  908. __declspec(property(get=Getname))
  909. _bstr_t name;
  910. __declspec(property(get=Getspecified))
  911. VARIANT_BOOL specified;
  912. //
  913. // Wrapper methods for error-handling
  914. //
  915. _bstr_t Getname ( );
  916. VARIANT_BOOL Getspecified ( );
  917. _variant_t Getvalue ( );
  918. void Putvalue (
  919. const _variant_t & attributeValue );
  920. //
  921. // Raw methods provided by interface
  922. //
  923. virtual HRESULT __stdcall get_name (
  924. /*[out,retval]*/ BSTR * attributeName ) = 0;
  925. virtual HRESULT __stdcall get_specified (
  926. /*[out,retval]*/ VARIANT_BOOL * isSpecified ) = 0;
  927. virtual HRESULT __stdcall get_value (
  928. /*[out,retval]*/ VARIANT * attributeValue ) = 0;
  929. virtual HRESULT __stdcall put_value (
  930. /*[in]*/ VARIANT attributeValue ) = 0;
  931. };
  932. struct __declspec(uuid("3efaa413-272f-11d2-836f-0000f87a7782"))
  933. IDOMDocumentFragment : IDOMNode
  934. {};
  935. struct __declspec(uuid("3efaa41a-272f-11d2-836f-0000f87a7782"))
  936. IDOMCharacterData : IDOMNode
  937. {
  938. //
  939. // Property data
  940. //
  941. __declspec(property(get=Getdata,put=Putdata))
  942. _bstr_t data;
  943. __declspec(property(get=Getlength))
  944. long length;
  945. //
  946. // Wrapper methods for error-handling
  947. //
  948. _bstr_t Getdata ( );
  949. void Putdata (
  950. _bstr_t data );
  951. long Getlength ( );
  952. _bstr_t substringData (
  953. long offset,
  954. long count );
  955. HRESULT appendData (
  956. _bstr_t data );
  957. HRESULT insertData (
  958. long offset,
  959. _bstr_t data );
  960. HRESULT deleteData (
  961. long offset,
  962. long count );
  963. HRESULT replaceData (
  964. long offset,
  965. long count,
  966. _bstr_t data );
  967. //
  968. // Raw methods provided by interface
  969. //
  970. virtual HRESULT __stdcall get_data (
  971. /*[out,retval]*/ BSTR * data ) = 0;
  972. virtual HRESULT __stdcall put_data (
  973. /*[in]*/ BSTR data ) = 0;
  974. virtual HRESULT __stdcall get_length (
  975. /*[out,retval]*/ long * dataLength ) = 0;
  976. virtual HRESULT __stdcall raw_substringData (
  977. /*[in]*/ long offset,
  978. /*[in]*/ long count,
  979. /*[out,retval]*/ BSTR * data ) = 0;
  980. virtual HRESULT __stdcall raw_appendData (
  981. /*[in]*/ BSTR data ) = 0;
  982. virtual HRESULT __stdcall raw_insertData (
  983. /*[in]*/ long offset,
  984. /*[in]*/ BSTR data ) = 0;
  985. virtual HRESULT __stdcall raw_deleteData (
  986. /*[in]*/ long offset,
  987. /*[in]*/ long count ) = 0;
  988. virtual HRESULT __stdcall raw_replaceData (
  989. /*[in]*/ long offset,
  990. /*[in]*/ long count,
  991. /*[in]*/ BSTR data ) = 0;
  992. };
  993. struct __declspec(uuid("9cafc72d-272e-11d2-836f-0000f87a7782"))
  994. IDOMText : IDOMCharacterData
  995. {
  996. //
  997. // Wrapper methods for error-handling
  998. //
  999. IDOMTextPtr splitText (
  1000. long offset );
  1001. //
  1002. // Raw methods provided by interface
  1003. //
  1004. virtual HRESULT __stdcall raw_splitText (
  1005. /*[in]*/ long offset,
  1006. /*[out,retval]*/ struct IDOMText * * rightHandTextNode ) = 0;
  1007. };
  1008. struct __declspec(uuid("3efaa41e-272f-11d2-836f-0000f87a7782"))
  1009. IDOMComment : IDOMCharacterData
  1010. {};
  1011. struct __declspec(uuid("3efaa420-272f-11d2-836f-0000f87a7782"))
  1012. IDOMCDATASection : IDOMText
  1013. {};
  1014. struct __declspec(uuid("3efaa41f-272f-11d2-836f-0000f87a7782"))
  1015. IDOMProcessingInstruction : IDOMNode
  1016. {
  1017. //
  1018. // Property data
  1019. //
  1020. __declspec(property(get=Getdata,put=Putdata))
  1021. _bstr_t data;
  1022. __declspec(property(get=Gettarget))
  1023. _bstr_t target;
  1024. //
  1025. // Wrapper methods for error-handling
  1026. //
  1027. _bstr_t Gettarget ( );
  1028. _bstr_t Getdata ( );
  1029. void Putdata (
  1030. _bstr_t value );
  1031. //
  1032. // Raw methods provided by interface
  1033. //
  1034. virtual HRESULT __stdcall get_target (
  1035. /*[out,retval]*/ BSTR * name ) = 0;
  1036. virtual HRESULT __stdcall get_data (
  1037. /*[out,retval]*/ BSTR * value ) = 0;
  1038. virtual HRESULT __stdcall put_data (
  1039. /*[in]*/ BSTR value ) = 0;
  1040. };
  1041. struct __declspec(uuid("3efaa424-272f-11d2-836f-0000f87a7782"))
  1042. IDOMEntityReference : IDOMNode
  1043. {};
  1044. struct __declspec(uuid("3efaa422-272f-11d2-836f-0000f87a7782"))
  1045. IDOMNotation : IDOMNode
  1046. {
  1047. //
  1048. // Property data
  1049. //
  1050. __declspec(property(get=GetpublicId))
  1051. _variant_t publicId;
  1052. __declspec(property(get=GetsystemId))
  1053. _variant_t systemId;
  1054. //
  1055. // Wrapper methods for error-handling
  1056. //
  1057. _variant_t GetpublicId ( );
  1058. _variant_t GetsystemId ( );
  1059. //
  1060. // Raw methods provided by interface
  1061. //
  1062. virtual HRESULT __stdcall get_publicId (
  1063. /*[out,retval]*/ VARIANT * publicId ) = 0;
  1064. virtual HRESULT __stdcall get_systemId (
  1065. /*[out,retval]*/ VARIANT * systemId ) = 0;
  1066. };
  1067. struct __declspec(uuid("3efaa423-272f-11d2-836f-0000f87a7782"))
  1068. IDOMEntity : IDOMNode
  1069. {
  1070. //
  1071. // Property data
  1072. //
  1073. __declspec(property(get=GetpublicId))
  1074. _variant_t publicId;
  1075. __declspec(property(get=GetsystemId))
  1076. _variant_t systemId;
  1077. __declspec(property(get=GetnotationName))
  1078. _bstr_t notationName;
  1079. //
  1080. // Wrapper methods for error-handling
  1081. //
  1082. _variant_t GetpublicId ( );
  1083. _variant_t GetsystemId ( );
  1084. _bstr_t GetnotationName ( );
  1085. //
  1086. // Raw methods provided by interface
  1087. //
  1088. virtual HRESULT __stdcall get_publicId (
  1089. /*[out,retval]*/ VARIANT * publicId ) = 0;
  1090. virtual HRESULT __stdcall get_systemId (
  1091. /*[out,retval]*/ VARIANT * systemId ) = 0;
  1092. virtual HRESULT __stdcall get_notationName (
  1093. /*[out,retval]*/ BSTR * name ) = 0;
  1094. };
  1095. struct __declspec(uuid("3efaa412-272f-11d2-836f-0000f87a7782"))
  1096. IXMLDOMNode : IDOMNode
  1097. {
  1098. //
  1099. // Property data
  1100. //
  1101. __declspec(property(get=Gettext,put=Puttext))
  1102. _bstr_t text;
  1103. __declspec(property(get=GetnodeStringType))
  1104. _bstr_t nodeStringType;
  1105. __declspec(property(get=Getspecified))
  1106. VARIANT_BOOL specified;
  1107. __declspec(property(get=Getdefinition))
  1108. IXMLDOMNodePtr definition;
  1109. __declspec(property(get=GetnodeTypedValue,put=PutnodeTypedValue))
  1110. _variant_t nodeTypedValue;
  1111. __declspec(property(get=Getxml))
  1112. _bstr_t xml;
  1113. __declspec(property(get=Getparsed))
  1114. VARIANT_BOOL parsed;
  1115. __declspec(property(get=GetnameSpace))
  1116. _bstr_t nameSpace;
  1117. __declspec(property(get=Getprefix))
  1118. _bstr_t prefix;
  1119. __declspec(property(get=GetbaseName))
  1120. _bstr_t baseName;
  1121. //
  1122. // Wrapper methods for error-handling
  1123. //
  1124. _bstr_t GetnodeStringType ( );
  1125. _bstr_t Gettext ( );
  1126. void Puttext (
  1127. _bstr_t text );
  1128. VARIANT_BOOL Getspecified ( );
  1129. IXMLDOMNodePtr Getdefinition ( );
  1130. _variant_t GetnodeTypedValue ( );
  1131. void PutnodeTypedValue (
  1132. const _variant_t & typedValue );
  1133. _variant_t GetdataType ( );
  1134. void PutdataType (
  1135. _bstr_t dataTypeName );
  1136. _bstr_t Getxml ( );
  1137. _bstr_t transformNode (
  1138. struct IXMLDOMNode * stylesheet );
  1139. IXMLDOMNodeListPtr selectNodes (
  1140. _bstr_t queryString );
  1141. IXMLDOMNodePtr selectSingleNode (
  1142. _bstr_t queryString );
  1143. VARIANT_BOOL Getparsed ( );
  1144. _bstr_t GetnameSpace ( );
  1145. _bstr_t Getprefix ( );
  1146. _bstr_t GetbaseName ( );
  1147. //
  1148. // Raw methods provided by interface
  1149. //
  1150. virtual HRESULT __stdcall get_nodeStringType (
  1151. /*[out,retval]*/ BSTR * nodeType ) = 0;
  1152. virtual HRESULT __stdcall get_text (
  1153. /*[out,retval]*/ BSTR * text ) = 0;
  1154. virtual HRESULT __stdcall put_text (
  1155. /*[in]*/ BSTR text ) = 0;
  1156. virtual HRESULT __stdcall get_specified (
  1157. /*[out,retval]*/ VARIANT_BOOL * isSpecified ) = 0;
  1158. virtual HRESULT __stdcall get_definition (
  1159. /*[out,retval]*/ struct IXMLDOMNode * * definitionNode ) = 0;
  1160. virtual HRESULT __stdcall get_nodeTypedValue (
  1161. /*[out,retval]*/ VARIANT * typedValue ) = 0;
  1162. virtual HRESULT __stdcall put_nodeTypedValue (
  1163. /*[in]*/ VARIANT typedValue ) = 0;
  1164. virtual HRESULT __stdcall get_dataType (
  1165. /*[out,retval]*/ VARIANT * dataTypeName ) = 0;
  1166. virtual HRESULT __stdcall put_dataType (
  1167. /*[in]*/ BSTR dataTypeName ) = 0;
  1168. virtual HRESULT __stdcall get_xml (
  1169. /*[out,retval]*/ BSTR * xmlString ) = 0;
  1170. virtual HRESULT __stdcall raw_transformNode (
  1171. /*[in]*/ struct IXMLDOMNode * stylesheet,
  1172. /*[out,retval]*/ BSTR * xmlString ) = 0;
  1173. virtual HRESULT __stdcall raw_selectNodes (
  1174. /*[in]*/ BSTR queryString,
  1175. /*[out,retval]*/ struct IXMLDOMNodeList * * resultList ) = 0;
  1176. virtual HRESULT __stdcall raw_selectSingleNode (
  1177. /*[in]*/ BSTR queryString,
  1178. /*[out,retval]*/ struct IXMLDOMNode * * resultNode ) = 0;
  1179. virtual HRESULT __stdcall get_parsed (
  1180. /*[out,retval]*/ VARIANT_BOOL * isParsed ) = 0;
  1181. virtual HRESULT __stdcall get_nameSpace (
  1182. /*[out,retval]*/ BSTR * namespaceURI ) = 0;
  1183. virtual HRESULT __stdcall get_prefix (
  1184. /*[out,retval]*/ BSTR * prefixString ) = 0;
  1185. virtual HRESULT __stdcall get_baseName (
  1186. /*[out,retval]*/ BSTR * nameString ) = 0;
  1187. };
  1188. struct __declspec(uuid("3efaa417-272f-11d2-836f-0000f87a7782"))
  1189. IXMLDOMNodeList : IDOMNodeList
  1190. {
  1191. //
  1192. // Property data
  1193. //
  1194. __declspec(property(get=Get_newEnum))
  1195. IUnknownPtr _newEnum;
  1196. //
  1197. // Wrapper methods for error-handling
  1198. //
  1199. IXMLDOMNodePtr nextNode ( );
  1200. HRESULT reset ( );
  1201. IUnknownPtr Get_newEnum ( );
  1202. //
  1203. // Raw methods provided by interface
  1204. //
  1205. virtual HRESULT __stdcall raw_nextNode (
  1206. /*[out,retval]*/ struct IXMLDOMNode * * nextItem ) = 0;
  1207. virtual HRESULT __stdcall raw_reset ( ) = 0;
  1208. virtual HRESULT __stdcall get__newEnum (
  1209. /*[out,retval]*/ IUnknown * * ppUnk ) = 0;
  1210. };
  1211. struct __declspec(uuid("3efaa415-272f-11d2-836f-0000f87a7782"))
  1212. IXMLDOMDocument : IDOMDocument
  1213. {
  1214. //
  1215. // Property data
  1216. //
  1217. __declspec(property(get=GetparseError))
  1218. IDOMParseErrorPtr parseError;
  1219. __declspec(property(get=GetURL))
  1220. _bstr_t URL;
  1221. __declspec(property(get=Getasync,put=Putasync))
  1222. VARIANT_BOOL async;
  1223. __declspec(property(get=GetvalidateOnParse,put=PutvalidateOnParse))
  1224. VARIANT_BOOL validateOnParse;
  1225. __declspec(property(put=Putonreadystatechange))
  1226. _variant_t onreadystatechange;
  1227. __declspec(property(put=Putondataavailable))
  1228. _variant_t ondataavailable;
  1229. __declspec(property(get=Getxml))
  1230. _bstr_t xml;
  1231. __declspec(property(get=GetreadyState))
  1232. long readyState;
  1233. __declspec(property(get=Getparsed))
  1234. VARIANT_BOOL parsed;
  1235. //
  1236. // Wrapper methods for error-handling
  1237. //
  1238. IXMLDOMNodePtr createNode (
  1239. const _variant_t & type,
  1240. _bstr_t name,
  1241. _bstr_t namespaceURI );
  1242. IXMLDOMNodePtr nodeFromID (
  1243. _bstr_t idString );
  1244. VARIANT_BOOL load (
  1245. _bstr_t URL );
  1246. long GetreadyState ( );
  1247. IDOMParseErrorPtr GetparseError ( );
  1248. _bstr_t GetURL ( );
  1249. VARIANT_BOOL Getasync ( );
  1250. void Putasync (
  1251. VARIANT_BOOL isAsync );
  1252. HRESULT abort ( );
  1253. VARIANT_BOOL loadXML (
  1254. _bstr_t xmlString );
  1255. VARIANT_BOOL GetvalidateOnParse ( );
  1256. void PutvalidateOnParse (
  1257. VARIANT_BOOL isValidating );
  1258. void Putonreadystatechange (
  1259. const _variant_t & _arg1 );
  1260. void Putondataavailable (
  1261. const _variant_t & _arg1 );
  1262. _bstr_t Getxml ( );
  1263. _bstr_t transformNode (
  1264. struct IXMLDOMNode * stylesheet );
  1265. IXMLDOMNodeListPtr selectNodes (
  1266. _bstr_t queryString );
  1267. IXMLDOMNodePtr selectSingleNode (
  1268. _bstr_t queryString );
  1269. VARIANT_BOOL Getparsed ( );
  1270. //
  1271. // Raw methods provided by interface
  1272. //
  1273. virtual HRESULT __stdcall raw_createNode (
  1274. /*[in]*/ VARIANT type,
  1275. /*[in]*/ BSTR name,
  1276. /*[in]*/ BSTR namespaceURI,
  1277. /*[out,retval]*/ struct IXMLDOMNode * * node ) = 0;
  1278. virtual HRESULT __stdcall raw_nodeFromID (
  1279. /*[in]*/ BSTR idString,
  1280. /*[out,retval]*/ struct IXMLDOMNode * * node ) = 0;
  1281. virtual HRESULT __stdcall raw_load (
  1282. /*[in]*/ BSTR URL,
  1283. /*[out,retval]*/ VARIANT_BOOL * isSuccessful ) = 0;
  1284. virtual HRESULT __stdcall get_readyState (
  1285. /*[out,retval]*/ long * value ) = 0;
  1286. virtual HRESULT __stdcall get_parseError (
  1287. /*[out,retval]*/ struct IDOMParseError * * errorObj ) = 0;
  1288. virtual HRESULT __stdcall get_URL (
  1289. /*[out,retval]*/ BSTR * urlString ) = 0;
  1290. virtual HRESULT __stdcall get_async (
  1291. /*[out,retval]*/ VARIANT_BOOL * isAsync ) = 0;
  1292. virtual HRESULT __stdcall put_async (
  1293. /*[in]*/ VARIANT_BOOL isAsync ) = 0;
  1294. virtual HRESULT __stdcall raw_abort ( ) = 0;
  1295. virtual HRESULT __stdcall raw_loadXML (
  1296. /*[in]*/ BSTR xmlString,
  1297. /*[out,retval]*/ VARIANT_BOOL * isSuccessful ) = 0;
  1298. virtual HRESULT __stdcall get_validateOnParse (
  1299. /*[out,retval]*/ VARIANT_BOOL * isValidating ) = 0;
  1300. virtual HRESULT __stdcall put_validateOnParse (
  1301. /*[in]*/ VARIANT_BOOL isValidating ) = 0;
  1302. virtual HRESULT __stdcall put_onreadystatechange (
  1303. /*[in]*/ VARIANT _arg1 ) = 0;
  1304. virtual HRESULT __stdcall put_ondataavailable (
  1305. /*[in]*/ VARIANT _arg1 ) = 0;
  1306. virtual HRESULT __stdcall get_xml (
  1307. /*[out,retval]*/ BSTR * xmlString ) = 0;
  1308. virtual HRESULT __stdcall raw_transformNode (
  1309. /*[in]*/ struct IXMLDOMNode * stylesheet,
  1310. /*[out,retval]*/ BSTR * transformedXML ) = 0;
  1311. virtual HRESULT __stdcall raw_selectNodes (
  1312. /*[in]*/ BSTR queryString,
  1313. /*[out,retval]*/ struct IXMLDOMNodeList * * resultList ) = 0;
  1314. virtual HRESULT __stdcall raw_selectSingleNode (
  1315. /*[in]*/ BSTR queryString,
  1316. /*[out,retval]*/ struct IXMLDOMNode * * resultNode ) = 0;
  1317. virtual HRESULT __stdcall get_parsed (
  1318. /*[out,retval]*/ VARIANT_BOOL * isParsed ) = 0;
  1319. };
  1320. struct __declspec(uuid("3efaa426-272f-11d2-836f-0000f87a7782"))
  1321. IDOMParseError : IDispatch
  1322. {
  1323. //
  1324. // Property data
  1325. //
  1326. __declspec(property(get=GeterrorCode))
  1327. long errorCode;
  1328. __declspec(property(get=GetURL))
  1329. _bstr_t URL;
  1330. __declspec(property(get=Getreason))
  1331. _bstr_t reason;
  1332. __declspec(property(get=GetsrcText))
  1333. _bstr_t srcText;
  1334. __declspec(property(get=Getline))
  1335. long line;
  1336. __declspec(property(get=Getlinepos))
  1337. long linepos;
  1338. __declspec(property(get=Getfilepos))
  1339. long filepos;
  1340. //
  1341. // Wrapper methods for error-handling
  1342. //
  1343. long GeterrorCode ( );
  1344. _bstr_t GetURL ( );
  1345. _bstr_t Getreason ( );
  1346. _bstr_t GetsrcText ( );
  1347. long Getline ( );
  1348. long Getlinepos ( );
  1349. long Getfilepos ( );
  1350. //
  1351. // Raw methods provided by interface
  1352. //
  1353. virtual HRESULT __stdcall get_errorCode (
  1354. /*[out,retval]*/ long * errorCode ) = 0;
  1355. virtual HRESULT __stdcall get_URL (
  1356. /*[out,retval]*/ BSTR * urlString ) = 0;
  1357. virtual HRESULT __stdcall get_reason (
  1358. /*[out,retval]*/ BSTR * reasonString ) = 0;
  1359. virtual HRESULT __stdcall get_srcText (
  1360. /*[out,retval]*/ BSTR * sourceString ) = 0;
  1361. virtual HRESULT __stdcall get_line (
  1362. /*[out,retval]*/ long * lineNumber ) = 0;
  1363. virtual HRESULT __stdcall get_linepos (
  1364. /*[out,retval]*/ long * linePosition ) = 0;
  1365. virtual HRESULT __stdcall get_filepos (
  1366. /*[out,retval]*/ long * filePosition ) = 0;
  1367. };
  1368. struct __declspec(uuid("3efaa419-272f-11d2-836f-0000f87a7782"))
  1369. IXMLDOMNamedNodeMap : IDOMNamedNodeMap
  1370. {
  1371. //
  1372. // Property data
  1373. //
  1374. __declspec(property(get=Get_newEnum))
  1375. IUnknownPtr _newEnum;
  1376. //
  1377. // Wrapper methods for error-handling
  1378. //
  1379. IXMLDOMNodePtr getQualifiedItem (
  1380. _bstr_t baseName,
  1381. _bstr_t namespaceURI );
  1382. IXMLDOMNodePtr removeQualifiedItem (
  1383. _bstr_t baseName,
  1384. _bstr_t namespaceURI );
  1385. IXMLDOMNodePtr nextNode ( );
  1386. HRESULT reset ( );
  1387. IUnknownPtr Get_newEnum ( );
  1388. //
  1389. // Raw methods provided by interface
  1390. //
  1391. virtual HRESULT __stdcall raw_getQualifiedItem (
  1392. /*[in]*/ BSTR baseName,
  1393. /*[in]*/ BSTR namespaceURI,
  1394. /*[out,retval]*/ struct IXMLDOMNode * * qualifiedItem ) = 0;
  1395. virtual HRESULT __stdcall raw_removeQualifiedItem (
  1396. /*[in]*/ BSTR baseName,
  1397. /*[in]*/ BSTR namespaceURI,
  1398. /*[out,retval]*/ struct IXMLDOMNode * * qualifiedItem ) = 0;
  1399. virtual HRESULT __stdcall raw_nextNode (
  1400. /*[out,retval]*/ struct IXMLDOMNode * * nextItem ) = 0;
  1401. virtual HRESULT __stdcall raw_reset ( ) = 0;
  1402. virtual HRESULT __stdcall get__newEnum (
  1403. /*[out,retval]*/ IUnknown * * ppUnk ) = 0;
  1404. };
  1405. struct __declspec(uuid("3efaa425-272f-11d2-836f-0000f87a7782"))
  1406. IXTLRuntime : IXMLDOMNode
  1407. {
  1408. //
  1409. // Wrapper methods for error-handling
  1410. //
  1411. long uniqueID (
  1412. struct IDOMNode * pNode );
  1413. long depth (
  1414. struct IDOMNode * pNode );
  1415. long childNumber (
  1416. struct IDOMNode * pNode );
  1417. long ancestorChildNumber (
  1418. _bstr_t bstrNodeName,
  1419. struct IDOMNode * pNode );
  1420. long absoluteChildNumber (
  1421. struct IDOMNode * pNode );
  1422. _bstr_t formatIndex (
  1423. long lIndex,
  1424. _bstr_t bstrFormat );
  1425. _bstr_t formatNumber (
  1426. double dblNumber,
  1427. _bstr_t bstrFormat );
  1428. _bstr_t formatDate (
  1429. const _variant_t & varDate,
  1430. _bstr_t bstrFormat,
  1431. const _variant_t & varDestLocale = vtMissing );
  1432. _bstr_t formatTime (
  1433. const _variant_t & varTime,
  1434. _bstr_t bstrFormat,
  1435. const _variant_t & varDestLocale = vtMissing );
  1436. //
  1437. // Raw methods provided by interface
  1438. //
  1439. virtual HRESULT __stdcall raw_uniqueID (
  1440. /*[in]*/ struct IDOMNode * pNode,
  1441. /*[out,retval]*/ long * pID ) = 0;
  1442. virtual HRESULT __stdcall raw_depth (
  1443. /*[in]*/ struct IDOMNode * pNode,
  1444. /*[out,retval]*/ long * pDepth ) = 0;
  1445. virtual HRESULT __stdcall raw_childNumber (
  1446. /*[in]*/ struct IDOMNode * pNode,
  1447. /*[out,retval]*/ long * pNumber ) = 0;
  1448. virtual HRESULT __stdcall raw_ancestorChildNumber (
  1449. /*[in]*/ BSTR bstrNodeName,
  1450. /*[in]*/ struct IDOMNode * pNode,
  1451. /*[out,retval]*/ long * pNumber ) = 0;
  1452. virtual HRESULT __stdcall raw_absoluteChildNumber (
  1453. /*[in]*/ struct IDOMNode * pNode,
  1454. /*[out,retval]*/ long * pNumber ) = 0;
  1455. virtual HRESULT __stdcall raw_formatIndex (
  1456. /*[in]*/ long lIndex,
  1457. /*[in]*/ BSTR bstrFormat,
  1458. /*[out,retval]*/ BSTR * pbstrFormattedString ) = 0;
  1459. virtual HRESULT __stdcall raw_formatNumber (
  1460. /*[in]*/ double dblNumber,
  1461. /*[in]*/ BSTR bstrFormat,
  1462. /*[out,retval]*/ BSTR * pbstrFormattedString ) = 0;
  1463. virtual HRESULT __stdcall raw_formatDate (
  1464. /*[in]*/ VARIANT varDate,
  1465. /*[in]*/ BSTR bstrFormat,
  1466. /*[in]*/ VARIANT varDestLocale,
  1467. /*[out,retval]*/ BSTR * pbstrFormattedString ) = 0;
  1468. virtual HRESULT __stdcall raw_formatTime (
  1469. /*[in]*/ VARIANT varTime,
  1470. /*[in]*/ BSTR bstrFormat,
  1471. /*[in]*/ VARIANT varDestLocale,
  1472. /*[out,retval]*/ BSTR * pbstrFormattedString ) = 0;
  1473. };
  1474. struct __declspec(uuid("3efaa427-272f-11d2-836f-0000f87a7782"))
  1475. XMLDOMDocumentEvents : IDispatch
  1476. {
  1477. //
  1478. // Wrapper methods for error-handling
  1479. //
  1480. // Methods:
  1481. HRESULT ondataavailable ( );
  1482. HRESULT onreadystatechange ( );
  1483. };
  1484. struct __declspec(uuid("3efaa428-272f-11d2-836f-0000f87a7782"))
  1485. DOMDocument;
  1486. // [ default ] interface IXMLDOMDocument
  1487. // [ default, source ] dispinterface XMLDOMDocumentEvents
  1488. struct __declspec(uuid("ed8c108d-4349-11d2-91a4-00c04f7969e8"))
  1489. IXMLHttpRequest : IDispatch
  1490. {
  1491. //
  1492. // Property data
  1493. //
  1494. __declspec(property(get=GetRequestBody,put=PutRequestBody))
  1495. _variant_t RequestBody;
  1496. __declspec(property(get=GetStatus))
  1497. long Status;
  1498. __declspec(property(get=GetStatusText))
  1499. _bstr_t StatusText;
  1500. __declspec(property(get=GetResponseXML))
  1501. IDispatchPtr ResponseXML;
  1502. __declspec(property(get=GetResponseBody))
  1503. _variant_t ResponseBody;
  1504. //
  1505. // Wrapper methods for error-handling
  1506. //
  1507. HRESULT Open (
  1508. _bstr_t bstrMethod,
  1509. _bstr_t bstrUrl,
  1510. const _variant_t & bstrUser = vtMissing,
  1511. const _variant_t & bstrPassword = vtMissing );
  1512. HRESULT SetHeader (
  1513. _bstr_t bstrHeader,
  1514. _bstr_t bstrValue );
  1515. _bstr_t GetHeader (
  1516. _bstr_t bstrHeader );
  1517. HRESULT Send ( );
  1518. void PutRequestBody (
  1519. const _variant_t & pvarVal );
  1520. _variant_t GetRequestBody ( );
  1521. long GetStatus ( );
  1522. _bstr_t GetStatusText ( );
  1523. IDispatchPtr GetResponseXML ( );
  1524. _variant_t GetResponseBody ( );
  1525. //
  1526. // Raw methods provided by interface
  1527. //
  1528. virtual HRESULT __stdcall raw_Open (
  1529. /*[in]*/ BSTR bstrMethod,
  1530. /*[in]*/ BSTR bstrUrl,
  1531. /*[in]*/ VARIANT bstrUser = vtMissing,
  1532. /*[in]*/ VARIANT bstrPassword = vtMissing ) = 0;
  1533. virtual HRESULT __stdcall raw_SetHeader (
  1534. /*[in]*/ BSTR bstrHeader,
  1535. /*[in]*/ BSTR bstrValue ) = 0;
  1536. virtual HRESULT __stdcall raw_GetHeader (
  1537. /*[in]*/ BSTR bstrHeader,
  1538. /*[out,retval]*/ BSTR * pbstrValue ) = 0;
  1539. virtual HRESULT __stdcall raw_Send ( ) = 0;
  1540. virtual HRESULT __stdcall put_RequestBody (
  1541. /*[in]*/ VARIANT pvarVal ) = 0;
  1542. virtual HRESULT __stdcall get_RequestBody (
  1543. /*[out,retval]*/ VARIANT * pvarVal ) = 0;
  1544. virtual HRESULT __stdcall get_Status (
  1545. /*[out,retval]*/ long * plVal ) = 0;
  1546. virtual HRESULT __stdcall get_StatusText (
  1547. /*[out,retval]*/ BSTR * pbstrVal ) = 0;
  1548. virtual HRESULT __stdcall get_ResponseXML (
  1549. /*[out,retval]*/ IDispatch * * ppXmlDom ) = 0;
  1550. virtual HRESULT __stdcall get_ResponseBody (
  1551. /*[out,retval]*/ VARIANT * pvarVal ) = 0;
  1552. };
  1553. struct __declspec(uuid("ed8c108e-4349-11d2-91a4-00c04f7969e8"))
  1554. XMLHTTPRequest;
  1555. // [ default ] interface IXMLHttpRequest
  1556. struct __declspec(uuid("310afa62-0575-11d2-9ca9-0060b0ec3d39"))
  1557. IXMLDSOControl : IDispatch
  1558. {
  1559. //
  1560. // Property data
  1561. //
  1562. __declspec(property(get=GetXMLDocument,put=PutXMLDocument))
  1563. IXMLDOMDocumentPtr XMLDocument;
  1564. __declspec(property(get=GetJavaDSOCompatible,put=PutJavaDSOCompatible))
  1565. long JavaDSOCompatible;
  1566. __declspec(property(get=GetFilterSchema,put=PutFilterSchema))
  1567. _bstr_t FilterSchema;
  1568. __declspec(property(get=GetreadyState))
  1569. long readyState;
  1570. //
  1571. // Wrapper methods for error-handling
  1572. //
  1573. IXMLDOMDocumentPtr GetXMLDocument ( );
  1574. void PutXMLDocument (
  1575. struct IXMLDOMDocument * ppDoc );
  1576. long GetJavaDSOCompatible ( );
  1577. void PutJavaDSOCompatible (
  1578. long fJavaDSOCompatible );
  1579. _bstr_t GetFilterSchema ( );
  1580. void PutFilterSchema (
  1581. _bstr_t pFilterSchemaUrl );
  1582. long GetreadyState ( );
  1583. //
  1584. // Raw methods provided by interface
  1585. //
  1586. virtual HRESULT __stdcall get_XMLDocument (
  1587. /*[out,retval]*/ struct IXMLDOMDocument * * ppDoc ) = 0;
  1588. virtual HRESULT __stdcall put_XMLDocument (
  1589. /*[in]*/ struct IXMLDOMDocument * ppDoc ) = 0;
  1590. virtual HRESULT __stdcall get_JavaDSOCompatible (
  1591. /*[out,retval]*/ long * fJavaDSOCompatible ) = 0;
  1592. virtual HRESULT __stdcall put_JavaDSOCompatible (
  1593. /*[in]*/ long fJavaDSOCompatible ) = 0;
  1594. virtual HRESULT __stdcall get_FilterSchema (
  1595. /*[out,retval]*/ BSTR * pFilterSchemaUrl ) = 0;
  1596. virtual HRESULT __stdcall put_FilterSchema (
  1597. /*[in]*/ BSTR pFilterSchemaUrl ) = 0;
  1598. virtual HRESULT __stdcall get_readyState (
  1599. /*[out,retval]*/ long * state ) = 0;
  1600. };
  1601. struct __declspec(uuid("550dda30-0541-11d2-9ca9-0060b0ec3d39"))
  1602. XMLDSOControl;
  1603. // [ default ] interface IXMLDSOControl
  1604. enum tagXMLEMEM_TYPE
  1605. {
  1606. XMLELEMTYPE_ELEMENT = 0,
  1607. XMLELEMTYPE_TEXT = 1,
  1608. XMLELEMTYPE_COMMENT = 2,
  1609. XMLELEMTYPE_DOCUMENT = 3,
  1610. XMLELEMTYPE_DTD = 4,
  1611. XMLELEMTYPE_PI = 5,
  1612. XMLELEMTYPE_OTHER = 6
  1613. };
  1614. struct __declspec(uuid("cfc399af-d876-11d0-9c10-00c04fc99c8e"))
  1615. XMLDocument;
  1616. // [ default ] interface IXMLDocument2
  1617. //
  1618. // Wrapper method implementations
  1619. //
  1620. #include "xmltli.h"
  1621. } // namespace MSXML
  1622. #pragma pack(pop)