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.

1552 lines
51 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.tli
  4. //
  5. // Wrapper implementations for Win32 type library msxml.dll
  6. // compiler-generated file created 04/17/01 at 14:47:29 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface IXMLElementCollection wrapper method implementations
  10. //
  11. inline void IXMLElementCollection::Putlength ( long p ) {
  12. HRESULT _hr = put_length(p);
  13. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  14. }
  15. inline long IXMLElementCollection::Getlength ( ) {
  16. long _result = 0;
  17. HRESULT _hr = get_length(&_result);
  18. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  19. return _result;
  20. }
  21. inline IUnknownPtr IXMLElementCollection::Get_newEnum ( ) {
  22. IUnknown * _result = 0;
  23. HRESULT _hr = get__newEnum(&_result);
  24. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  25. return IUnknownPtr(_result, false);
  26. }
  27. inline IDispatchPtr IXMLElementCollection::item ( const _variant_t & var1, const _variant_t & var2 ) {
  28. IDispatch * _result = 0;
  29. HRESULT _hr = raw_item(var1, var2, &_result);
  30. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  31. return IDispatchPtr(_result, false);
  32. }
  33. //
  34. // interface IXMLDocument wrapper method implementations
  35. //
  36. inline IXMLElementPtr IXMLDocument::Getroot ( ) {
  37. struct IXMLElement * _result = 0;
  38. HRESULT _hr = get_root(&_result);
  39. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  40. return IXMLElementPtr(_result, false);
  41. }
  42. inline _bstr_t IXMLDocument::GetfileSize ( ) {
  43. BSTR _result = 0;
  44. HRESULT _hr = get_fileSize(&_result);
  45. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  46. return _bstr_t(_result, false);
  47. }
  48. inline _bstr_t IXMLDocument::GetfileModifiedDate ( ) {
  49. BSTR _result = 0;
  50. HRESULT _hr = get_fileModifiedDate(&_result);
  51. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  52. return _bstr_t(_result, false);
  53. }
  54. inline _bstr_t IXMLDocument::GetfileUpdatedDate ( ) {
  55. BSTR _result = 0;
  56. HRESULT _hr = get_fileUpdatedDate(&_result);
  57. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  58. return _bstr_t(_result, false);
  59. }
  60. inline _bstr_t IXMLDocument::GetURL ( ) {
  61. BSTR _result = 0;
  62. HRESULT _hr = get_URL(&_result);
  63. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  64. return _bstr_t(_result, false);
  65. }
  66. inline void IXMLDocument::PutURL ( _bstr_t p ) {
  67. HRESULT _hr = put_URL(p);
  68. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  69. }
  70. inline _bstr_t IXMLDocument::GetmimeType ( ) {
  71. BSTR _result = 0;
  72. HRESULT _hr = get_mimeType(&_result);
  73. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  74. return _bstr_t(_result, false);
  75. }
  76. inline long IXMLDocument::GetreadyState ( ) {
  77. long _result = 0;
  78. HRESULT _hr = get_readyState(&_result);
  79. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  80. return _result;
  81. }
  82. inline _bstr_t IXMLDocument::Getcharset ( ) {
  83. BSTR _result = 0;
  84. HRESULT _hr = get_charset(&_result);
  85. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  86. return _bstr_t(_result, false);
  87. }
  88. inline void IXMLDocument::Putcharset ( _bstr_t p ) {
  89. HRESULT _hr = put_charset(p);
  90. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  91. }
  92. inline _bstr_t IXMLDocument::Getversion ( ) {
  93. BSTR _result = 0;
  94. HRESULT _hr = get_version(&_result);
  95. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  96. return _bstr_t(_result, false);
  97. }
  98. inline _bstr_t IXMLDocument::Getdoctype ( ) {
  99. BSTR _result = 0;
  100. HRESULT _hr = get_doctype(&_result);
  101. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  102. return _bstr_t(_result, false);
  103. }
  104. inline _bstr_t IXMLDocument::GetdtdURL ( ) {
  105. BSTR _result = 0;
  106. HRESULT _hr = get_dtdURL(&_result);
  107. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  108. return _bstr_t(_result, false);
  109. }
  110. inline IXMLElementPtr IXMLDocument::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
  111. struct IXMLElement * _result = 0;
  112. HRESULT _hr = raw_createElement(vType, var1, &_result);
  113. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  114. return IXMLElementPtr(_result, false);
  115. }
  116. //
  117. // interface IXMLElement wrapper method implementations
  118. //
  119. inline _bstr_t IXMLElement::GettagName ( ) {
  120. BSTR _result = 0;
  121. HRESULT _hr = get_tagName(&_result);
  122. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  123. return _bstr_t(_result, false);
  124. }
  125. inline void IXMLElement::PuttagName ( _bstr_t p ) {
  126. HRESULT _hr = put_tagName(p);
  127. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  128. }
  129. inline IXMLElementPtr IXMLElement::Getparent ( ) {
  130. struct IXMLElement * _result = 0;
  131. HRESULT _hr = get_parent(&_result);
  132. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  133. return IXMLElementPtr(_result, false);
  134. }
  135. inline HRESULT IXMLElement::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
  136. HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
  137. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  138. return _hr;
  139. }
  140. inline _variant_t IXMLElement::getAttribute ( _bstr_t strPropertyName ) {
  141. VARIANT _result;
  142. VariantInit(&_result);
  143. HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
  144. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  145. return _variant_t(_result, false);
  146. }
  147. inline HRESULT IXMLElement::removeAttribute ( _bstr_t strPropertyName ) {
  148. HRESULT _hr = raw_removeAttribute(strPropertyName);
  149. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  150. return _hr;
  151. }
  152. inline IXMLElementCollectionPtr IXMLElement::Getchildren ( ) {
  153. struct IXMLElementCollection * _result = 0;
  154. HRESULT _hr = get_children(&_result);
  155. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  156. return IXMLElementCollectionPtr(_result, false);
  157. }
  158. inline long IXMLElement::Gettype ( ) {
  159. long _result = 0;
  160. HRESULT _hr = get_type(&_result);
  161. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  162. return _result;
  163. }
  164. inline _bstr_t IXMLElement::Gettext ( ) {
  165. BSTR _result = 0;
  166. HRESULT _hr = get_text(&_result);
  167. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  168. return _bstr_t(_result, false);
  169. }
  170. inline void IXMLElement::Puttext ( _bstr_t p ) {
  171. HRESULT _hr = put_text(p);
  172. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  173. }
  174. inline HRESULT IXMLElement::addChild ( struct IXMLElement * pChildElem, long lIndex, long lReserved ) {
  175. HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
  176. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  177. return _hr;
  178. }
  179. inline HRESULT IXMLElement::removeChild ( struct IXMLElement * pChildElem ) {
  180. HRESULT _hr = raw_removeChild(pChildElem);
  181. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  182. return _hr;
  183. }
  184. //
  185. // interface IXMLDocument2 wrapper method implementations
  186. //
  187. inline IXMLElement2Ptr IXMLDocument2::Getroot ( ) {
  188. struct IXMLElement2 * _result = 0;
  189. HRESULT _hr = get_root(&_result);
  190. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  191. return IXMLElement2Ptr(_result, false);
  192. }
  193. inline _bstr_t IXMLDocument2::GetfileSize ( ) {
  194. BSTR _result = 0;
  195. HRESULT _hr = get_fileSize(&_result);
  196. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  197. return _bstr_t(_result, false);
  198. }
  199. inline _bstr_t IXMLDocument2::GetfileModifiedDate ( ) {
  200. BSTR _result = 0;
  201. HRESULT _hr = get_fileModifiedDate(&_result);
  202. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  203. return _bstr_t(_result, false);
  204. }
  205. inline _bstr_t IXMLDocument2::GetfileUpdatedDate ( ) {
  206. BSTR _result = 0;
  207. HRESULT _hr = get_fileUpdatedDate(&_result);
  208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  209. return _bstr_t(_result, false);
  210. }
  211. inline _bstr_t IXMLDocument2::GetURL ( ) {
  212. BSTR _result = 0;
  213. HRESULT _hr = get_URL(&_result);
  214. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  215. return _bstr_t(_result, false);
  216. }
  217. inline void IXMLDocument2::PutURL ( _bstr_t p ) {
  218. HRESULT _hr = put_URL(p);
  219. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  220. }
  221. inline _bstr_t IXMLDocument2::GetmimeType ( ) {
  222. BSTR _result = 0;
  223. HRESULT _hr = get_mimeType(&_result);
  224. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  225. return _bstr_t(_result, false);
  226. }
  227. inline long IXMLDocument2::GetreadyState ( ) {
  228. long _result = 0;
  229. HRESULT _hr = get_readyState(&_result);
  230. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  231. return _result;
  232. }
  233. inline _bstr_t IXMLDocument2::Getcharset ( ) {
  234. BSTR _result = 0;
  235. HRESULT _hr = get_charset(&_result);
  236. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  237. return _bstr_t(_result, false);
  238. }
  239. inline void IXMLDocument2::Putcharset ( _bstr_t p ) {
  240. HRESULT _hr = put_charset(p);
  241. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  242. }
  243. inline _bstr_t IXMLDocument2::Getversion ( ) {
  244. BSTR _result = 0;
  245. HRESULT _hr = get_version(&_result);
  246. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  247. return _bstr_t(_result, false);
  248. }
  249. inline _bstr_t IXMLDocument2::Getdoctype ( ) {
  250. BSTR _result = 0;
  251. HRESULT _hr = get_doctype(&_result);
  252. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  253. return _bstr_t(_result, false);
  254. }
  255. inline _bstr_t IXMLDocument2::GetdtdURL ( ) {
  256. BSTR _result = 0;
  257. HRESULT _hr = get_dtdURL(&_result);
  258. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  259. return _bstr_t(_result, false);
  260. }
  261. inline IXMLElement2Ptr IXMLDocument2::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
  262. struct IXMLElement2 * _result = 0;
  263. HRESULT _hr = raw_createElement(vType, var1, &_result);
  264. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  265. return IXMLElement2Ptr(_result, false);
  266. }
  267. inline VARIANT_BOOL IXMLDocument2::Getasync ( ) {
  268. VARIANT_BOOL _result = 0;
  269. HRESULT _hr = get_async(&_result);
  270. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  271. return _result;
  272. }
  273. inline void IXMLDocument2::Putasync ( VARIANT_BOOL pf ) {
  274. HRESULT _hr = put_async(pf);
  275. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  276. }
  277. //
  278. // interface IXMLElement2 wrapper method implementations
  279. //
  280. inline _bstr_t IXMLElement2::GettagName ( ) {
  281. BSTR _result = 0;
  282. HRESULT _hr = get_tagName(&_result);
  283. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  284. return _bstr_t(_result, false);
  285. }
  286. inline void IXMLElement2::PuttagName ( _bstr_t p ) {
  287. HRESULT _hr = put_tagName(p);
  288. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  289. }
  290. inline IXMLElement2Ptr IXMLElement2::Getparent ( ) {
  291. struct IXMLElement2 * _result = 0;
  292. HRESULT _hr = get_parent(&_result);
  293. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  294. return IXMLElement2Ptr(_result, false);
  295. }
  296. inline HRESULT IXMLElement2::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
  297. HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
  298. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  299. return _hr;
  300. }
  301. inline _variant_t IXMLElement2::getAttribute ( _bstr_t strPropertyName ) {
  302. VARIANT _result;
  303. VariantInit(&_result);
  304. HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
  305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  306. return _variant_t(_result, false);
  307. }
  308. inline HRESULT IXMLElement2::removeAttribute ( _bstr_t strPropertyName ) {
  309. HRESULT _hr = raw_removeAttribute(strPropertyName);
  310. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  311. return _hr;
  312. }
  313. inline IXMLElementCollectionPtr IXMLElement2::Getchildren ( ) {
  314. struct IXMLElementCollection * _result = 0;
  315. HRESULT _hr = get_children(&_result);
  316. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  317. return IXMLElementCollectionPtr(_result, false);
  318. }
  319. inline long IXMLElement2::Gettype ( ) {
  320. long _result = 0;
  321. HRESULT _hr = get_type(&_result);
  322. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  323. return _result;
  324. }
  325. inline _bstr_t IXMLElement2::Gettext ( ) {
  326. BSTR _result = 0;
  327. HRESULT _hr = get_text(&_result);
  328. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  329. return _bstr_t(_result, false);
  330. }
  331. inline void IXMLElement2::Puttext ( _bstr_t p ) {
  332. HRESULT _hr = put_text(p);
  333. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  334. }
  335. inline HRESULT IXMLElement2::addChild ( struct IXMLElement2 * pChildElem, long lIndex, long lReserved ) {
  336. HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
  337. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  338. return _hr;
  339. }
  340. inline HRESULT IXMLElement2::removeChild ( struct IXMLElement2 * pChildElem ) {
  341. HRESULT _hr = raw_removeChild(pChildElem);
  342. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  343. return _hr;
  344. }
  345. inline IXMLElementCollectionPtr IXMLElement2::Getattributes ( ) {
  346. struct IXMLElementCollection * _result = 0;
  347. HRESULT _hr = get_attributes(&_result);
  348. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  349. return IXMLElementCollectionPtr(_result, false);
  350. }
  351. //
  352. // interface IXMLAttribute wrapper method implementations
  353. //
  354. inline _bstr_t IXMLAttribute::Getname ( ) {
  355. BSTR _result = 0;
  356. HRESULT _hr = get_name(&_result);
  357. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  358. return _bstr_t(_result, false);
  359. }
  360. inline _bstr_t IXMLAttribute::Getvalue ( ) {
  361. BSTR _result = 0;
  362. HRESULT _hr = get_value(&_result);
  363. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  364. return _bstr_t(_result, false);
  365. }
  366. //
  367. // interface IXMLError wrapper method implementations
  368. //
  369. inline HRESULT IXMLError::GetErrorInfo ( struct _xml_error * pErrorReturn ) {
  370. HRESULT _hr = raw_GetErrorInfo(pErrorReturn);
  371. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  372. return _hr;
  373. }
  374. //
  375. // interface IDOMImplementation wrapper method implementations
  376. //
  377. inline VARIANT_BOOL IDOMImplementation::hasFeature ( _bstr_t feature, _bstr_t version ) {
  378. VARIANT_BOOL _result = 0;
  379. HRESULT _hr = raw_hasFeature(feature, version, &_result);
  380. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  381. return _result;
  382. }
  383. //
  384. // interface IDOMNode wrapper method implementations
  385. //
  386. inline _bstr_t IDOMNode::GetnodeName ( ) {
  387. BSTR _result = 0;
  388. HRESULT _hr = get_nodeName(&_result);
  389. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  390. return _bstr_t(_result, false);
  391. }
  392. inline _variant_t IDOMNode::GetnodeValue ( ) {
  393. VARIANT _result;
  394. VariantInit(&_result);
  395. HRESULT _hr = get_nodeValue(&_result);
  396. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  397. return _variant_t(_result, false);
  398. }
  399. inline void IDOMNode::PutnodeValue ( const _variant_t & value ) {
  400. HRESULT _hr = put_nodeValue(value);
  401. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  402. }
  403. inline DOMNodeType IDOMNode::GetnodeType ( ) {
  404. DOMNodeType _result;
  405. HRESULT _hr = get_nodeType(&_result);
  406. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  407. return _result;
  408. }
  409. inline IDOMNodePtr IDOMNode::GetparentNode ( ) {
  410. struct IDOMNode * _result = 0;
  411. HRESULT _hr = get_parentNode(&_result);
  412. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  413. return IDOMNodePtr(_result, false);
  414. }
  415. inline IDOMNodeListPtr IDOMNode::GetchildNodes ( ) {
  416. struct IDOMNodeList * _result = 0;
  417. HRESULT _hr = get_childNodes(&_result);
  418. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  419. return IDOMNodeListPtr(_result, false);
  420. }
  421. inline IDOMNodePtr IDOMNode::GetfirstChild ( ) {
  422. struct IDOMNode * _result = 0;
  423. HRESULT _hr = get_firstChild(&_result);
  424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  425. return IDOMNodePtr(_result, false);
  426. }
  427. inline IDOMNodePtr IDOMNode::GetlastChild ( ) {
  428. struct IDOMNode * _result = 0;
  429. HRESULT _hr = get_lastChild(&_result);
  430. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  431. return IDOMNodePtr(_result, false);
  432. }
  433. inline IDOMNodePtr IDOMNode::GetpreviousSibling ( ) {
  434. struct IDOMNode * _result = 0;
  435. HRESULT _hr = get_previousSibling(&_result);
  436. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  437. return IDOMNodePtr(_result, false);
  438. }
  439. inline IDOMNodePtr IDOMNode::GetnextSibling ( ) {
  440. struct IDOMNode * _result = 0;
  441. HRESULT _hr = get_nextSibling(&_result);
  442. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  443. return IDOMNodePtr(_result, false);
  444. }
  445. inline IDOMNamedNodeMapPtr IDOMNode::Getattributes ( ) {
  446. struct IDOMNamedNodeMap * _result = 0;
  447. HRESULT _hr = get_attributes(&_result);
  448. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  449. return IDOMNamedNodeMapPtr(_result, false);
  450. }
  451. inline IDOMNodePtr IDOMNode::insertBefore ( struct IDOMNode * newChild, const _variant_t & refChild ) {
  452. struct IDOMNode * _result = 0;
  453. HRESULT _hr = raw_insertBefore(newChild, refChild, &_result);
  454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  455. return IDOMNodePtr(_result, false);
  456. }
  457. inline IDOMNodePtr IDOMNode::replaceChild ( struct IDOMNode * newChild, struct IDOMNode * oldChild ) {
  458. struct IDOMNode * _result = 0;
  459. HRESULT _hr = raw_replaceChild(newChild, oldChild, &_result);
  460. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  461. return IDOMNodePtr(_result, false);
  462. }
  463. inline IDOMNodePtr IDOMNode::removeChild ( struct IDOMNode * childNode ) {
  464. struct IDOMNode * _result = 0;
  465. HRESULT _hr = raw_removeChild(childNode, &_result);
  466. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  467. return IDOMNodePtr(_result, false);
  468. }
  469. inline IDOMNodePtr IDOMNode::appendChild ( struct IDOMNode * newChild ) {
  470. struct IDOMNode * _result = 0;
  471. HRESULT _hr = raw_appendChild(newChild, &_result);
  472. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  473. return IDOMNodePtr(_result, false);
  474. }
  475. inline VARIANT_BOOL IDOMNode::hasChildNodes ( ) {
  476. VARIANT_BOOL _result = 0;
  477. HRESULT _hr = raw_hasChildNodes(&_result);
  478. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  479. return _result;
  480. }
  481. inline IDOMDocumentPtr IDOMNode::GetownerDocument ( ) {
  482. struct IDOMDocument * _result = 0;
  483. HRESULT _hr = get_ownerDocument(&_result);
  484. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  485. return IDOMDocumentPtr(_result, false);
  486. }
  487. inline IDOMNodePtr IDOMNode::cloneNode ( VARIANT_BOOL deep ) {
  488. struct IDOMNode * _result = 0;
  489. HRESULT _hr = raw_cloneNode(deep, &_result);
  490. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  491. return IDOMNodePtr(_result, false);
  492. }
  493. //
  494. // interface IDOMNodeList wrapper method implementations
  495. //
  496. inline IDOMNodePtr IDOMNodeList::Getitem ( long index ) {
  497. struct IDOMNode * _result = 0;
  498. HRESULT _hr = get_item(index, &_result);
  499. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  500. return IDOMNodePtr(_result, false);
  501. }
  502. inline long IDOMNodeList::Getlength ( ) {
  503. long _result = 0;
  504. HRESULT _hr = get_length(&_result);
  505. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  506. return _result;
  507. }
  508. //
  509. // interface IDOMNamedNodeMap wrapper method implementations
  510. //
  511. inline IDOMNodePtr IDOMNamedNodeMap::getNamedItem ( _bstr_t name ) {
  512. struct IDOMNode * _result = 0;
  513. HRESULT _hr = raw_getNamedItem(name, &_result);
  514. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  515. return IDOMNodePtr(_result, false);
  516. }
  517. inline IDOMNodePtr IDOMNamedNodeMap::setNamedItem ( struct IDOMNode * newItem ) {
  518. struct IDOMNode * _result = 0;
  519. HRESULT _hr = raw_setNamedItem(newItem, &_result);
  520. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  521. return IDOMNodePtr(_result, false);
  522. }
  523. inline IDOMNodePtr IDOMNamedNodeMap::removeNamedItem ( _bstr_t name ) {
  524. struct IDOMNode * _result = 0;
  525. HRESULT _hr = raw_removeNamedItem(name, &_result);
  526. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  527. return IDOMNodePtr(_result, false);
  528. }
  529. inline IDOMNodePtr IDOMNamedNodeMap::Getitem ( long index ) {
  530. struct IDOMNode * _result = 0;
  531. HRESULT _hr = get_item(index, &_result);
  532. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  533. return IDOMNodePtr(_result, false);
  534. }
  535. inline long IDOMNamedNodeMap::Getlength ( ) {
  536. long _result = 0;
  537. HRESULT _hr = get_length(&_result);
  538. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  539. return _result;
  540. }
  541. //
  542. // interface IDOMDocument wrapper method implementations
  543. //
  544. inline IDOMDocumentTypePtr IDOMDocument::Getdoctype ( ) {
  545. struct IDOMDocumentType * _result = 0;
  546. HRESULT _hr = get_doctype(&_result);
  547. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  548. return IDOMDocumentTypePtr(_result, false);
  549. }
  550. inline IDOMImplementationPtr IDOMDocument::Getimplementation ( ) {
  551. struct IDOMImplementation * _result = 0;
  552. HRESULT _hr = get_implementation(&_result);
  553. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  554. return IDOMImplementationPtr(_result, false);
  555. }
  556. inline IDOMElementPtr IDOMDocument::GetdocumentElement ( ) {
  557. struct IDOMElement * _result = 0;
  558. HRESULT _hr = get_documentElement(&_result);
  559. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  560. return IDOMElementPtr(_result, false);
  561. }
  562. inline void IDOMDocument::PutRefdocumentElement ( struct IDOMElement * DOMElement ) {
  563. HRESULT _hr = putref_documentElement(DOMElement);
  564. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  565. }
  566. inline IDOMElementPtr IDOMDocument::createElement ( _bstr_t tagName ) {
  567. struct IDOMElement * _result = 0;
  568. HRESULT _hr = raw_createElement(tagName, &_result);
  569. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  570. return IDOMElementPtr(_result, false);
  571. }
  572. inline IDOMDocumentFragmentPtr IDOMDocument::createDocumentFragment ( ) {
  573. struct IDOMDocumentFragment * _result = 0;
  574. HRESULT _hr = raw_createDocumentFragment(&_result);
  575. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  576. return IDOMDocumentFragmentPtr(_result, false);
  577. }
  578. inline IDOMTextPtr IDOMDocument::createTextNode ( _bstr_t data ) {
  579. struct IDOMText * _result = 0;
  580. HRESULT _hr = raw_createTextNode(data, &_result);
  581. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  582. return IDOMTextPtr(_result, false);
  583. }
  584. inline IDOMCommentPtr IDOMDocument::createComment ( _bstr_t data ) {
  585. struct IDOMComment * _result = 0;
  586. HRESULT _hr = raw_createComment(data, &_result);
  587. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  588. return IDOMCommentPtr(_result, false);
  589. }
  590. inline IDOMCDATASectionPtr IDOMDocument::createCDATASection ( _bstr_t data ) {
  591. struct IDOMCDATASection * _result = 0;
  592. HRESULT _hr = raw_createCDATASection(data, &_result);
  593. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  594. return IDOMCDATASectionPtr(_result, false);
  595. }
  596. inline IDOMProcessingInstructionPtr IDOMDocument::createProcessingInstruction ( _bstr_t target, _bstr_t data ) {
  597. struct IDOMProcessingInstruction * _result = 0;
  598. HRESULT _hr = raw_createProcessingInstruction(target, data, &_result);
  599. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  600. return IDOMProcessingInstructionPtr(_result, false);
  601. }
  602. inline IDOMAttributePtr IDOMDocument::createAttribute ( _bstr_t name ) {
  603. struct IDOMAttribute * _result = 0;
  604. HRESULT _hr = raw_createAttribute(name, &_result);
  605. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  606. return IDOMAttributePtr(_result, false);
  607. }
  608. inline IDOMEntityReferencePtr IDOMDocument::createEntityReference ( _bstr_t name ) {
  609. struct IDOMEntityReference * _result = 0;
  610. HRESULT _hr = raw_createEntityReference(name, &_result);
  611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  612. return IDOMEntityReferencePtr(_result, false);
  613. }
  614. inline IDOMNodeListPtr IDOMDocument::getElementsByTagName ( _bstr_t tagName ) {
  615. struct IDOMNodeList * _result = 0;
  616. HRESULT _hr = raw_getElementsByTagName(tagName, &_result);
  617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  618. return IDOMNodeListPtr(_result, false);
  619. }
  620. //
  621. // interface IDOMDocumentType wrapper method implementations
  622. //
  623. inline _bstr_t IDOMDocumentType::Getname ( ) {
  624. BSTR _result = 0;
  625. HRESULT _hr = get_name(&_result);
  626. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  627. return _bstr_t(_result, false);
  628. }
  629. inline IDOMNamedNodeMapPtr IDOMDocumentType::Getentities ( ) {
  630. struct IDOMNamedNodeMap * _result = 0;
  631. HRESULT _hr = get_entities(&_result);
  632. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  633. return IDOMNamedNodeMapPtr(_result, false);
  634. }
  635. inline IDOMNamedNodeMapPtr IDOMDocumentType::Getnotations ( ) {
  636. struct IDOMNamedNodeMap * _result = 0;
  637. HRESULT _hr = get_notations(&_result);
  638. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  639. return IDOMNamedNodeMapPtr(_result, false);
  640. }
  641. //
  642. // interface IDOMElement wrapper method implementations
  643. //
  644. inline _bstr_t IDOMElement::GettagName ( ) {
  645. BSTR _result = 0;
  646. HRESULT _hr = get_tagName(&_result);
  647. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  648. return _bstr_t(_result, false);
  649. }
  650. inline _variant_t IDOMElement::getAttribute ( _bstr_t name ) {
  651. VARIANT _result;
  652. VariantInit(&_result);
  653. HRESULT _hr = raw_getAttribute(name, &_result);
  654. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  655. return _variant_t(_result, false);
  656. }
  657. inline HRESULT IDOMElement::setAttribute ( _bstr_t name, const _variant_t & value ) {
  658. HRESULT _hr = raw_setAttribute(name, value);
  659. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  660. return _hr;
  661. }
  662. inline HRESULT IDOMElement::removeAttribute ( _bstr_t name ) {
  663. HRESULT _hr = raw_removeAttribute(name);
  664. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  665. return _hr;
  666. }
  667. inline IDOMAttributePtr IDOMElement::getAttributeNode ( _bstr_t name ) {
  668. struct IDOMAttribute * _result = 0;
  669. HRESULT _hr = raw_getAttributeNode(name, &_result);
  670. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  671. return IDOMAttributePtr(_result, false);
  672. }
  673. inline IDOMAttributePtr IDOMElement::setAttributeNode ( struct IDOMAttribute * DOMAttribute ) {
  674. struct IDOMAttribute * _result = 0;
  675. HRESULT _hr = raw_setAttributeNode(DOMAttribute, &_result);
  676. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  677. return IDOMAttributePtr(_result, false);
  678. }
  679. inline IDOMAttributePtr IDOMElement::removeAttributeNode ( struct IDOMAttribute * DOMAttribute ) {
  680. struct IDOMAttribute * _result = 0;
  681. HRESULT _hr = raw_removeAttributeNode(DOMAttribute, &_result);
  682. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  683. return IDOMAttributePtr(_result, false);
  684. }
  685. inline IDOMNodeListPtr IDOMElement::getElementsByTagName ( _bstr_t tagName ) {
  686. struct IDOMNodeList * _result = 0;
  687. HRESULT _hr = raw_getElementsByTagName(tagName, &_result);
  688. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  689. return IDOMNodeListPtr(_result, false);
  690. }
  691. inline HRESULT IDOMElement::normalize ( ) {
  692. HRESULT _hr = raw_normalize();
  693. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  694. return _hr;
  695. }
  696. //
  697. // interface IDOMAttribute wrapper method implementations
  698. //
  699. inline _bstr_t IDOMAttribute::Getname ( ) {
  700. BSTR _result = 0;
  701. HRESULT _hr = get_name(&_result);
  702. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  703. return _bstr_t(_result, false);
  704. }
  705. inline VARIANT_BOOL IDOMAttribute::Getspecified ( ) {
  706. VARIANT_BOOL _result = 0;
  707. HRESULT _hr = get_specified(&_result);
  708. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  709. return _result;
  710. }
  711. inline _variant_t IDOMAttribute::Getvalue ( ) {
  712. VARIANT _result;
  713. VariantInit(&_result);
  714. HRESULT _hr = get_value(&_result);
  715. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  716. return _variant_t(_result, false);
  717. }
  718. inline void IDOMAttribute::Putvalue ( const _variant_t & attributeValue ) {
  719. HRESULT _hr = put_value(attributeValue);
  720. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  721. }
  722. //
  723. // interface IDOMCharacterData wrapper method implementations
  724. //
  725. inline _bstr_t IDOMCharacterData::Getdata ( ) {
  726. BSTR _result = 0;
  727. HRESULT _hr = get_data(&_result);
  728. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  729. return _bstr_t(_result, false);
  730. }
  731. inline void IDOMCharacterData::Putdata ( _bstr_t data ) {
  732. HRESULT _hr = put_data(data);
  733. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  734. }
  735. inline long IDOMCharacterData::Getlength ( ) {
  736. long _result = 0;
  737. HRESULT _hr = get_length(&_result);
  738. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  739. return _result;
  740. }
  741. inline _bstr_t IDOMCharacterData::substringData ( long offset, long count ) {
  742. BSTR _result = 0;
  743. HRESULT _hr = raw_substringData(offset, count, &_result);
  744. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  745. return _bstr_t(_result, false);
  746. }
  747. inline HRESULT IDOMCharacterData::appendData ( _bstr_t data ) {
  748. HRESULT _hr = raw_appendData(data);
  749. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  750. return _hr;
  751. }
  752. inline HRESULT IDOMCharacterData::insertData ( long offset, _bstr_t data ) {
  753. HRESULT _hr = raw_insertData(offset, data);
  754. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  755. return _hr;
  756. }
  757. inline HRESULT IDOMCharacterData::deleteData ( long offset, long count ) {
  758. HRESULT _hr = raw_deleteData(offset, count);
  759. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  760. return _hr;
  761. }
  762. inline HRESULT IDOMCharacterData::replaceData ( long offset, long count, _bstr_t data ) {
  763. HRESULT _hr = raw_replaceData(offset, count, data);
  764. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  765. return _hr;
  766. }
  767. //
  768. // interface IDOMText wrapper method implementations
  769. //
  770. inline IDOMTextPtr IDOMText::splitText ( long offset ) {
  771. struct IDOMText * _result = 0;
  772. HRESULT _hr = raw_splitText(offset, &_result);
  773. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  774. return IDOMTextPtr(_result, false);
  775. }
  776. //
  777. // interface IDOMProcessingInstruction wrapper method implementations
  778. //
  779. inline _bstr_t IDOMProcessingInstruction::Gettarget ( ) {
  780. BSTR _result = 0;
  781. HRESULT _hr = get_target(&_result);
  782. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  783. return _bstr_t(_result, false);
  784. }
  785. inline _bstr_t IDOMProcessingInstruction::Getdata ( ) {
  786. BSTR _result = 0;
  787. HRESULT _hr = get_data(&_result);
  788. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  789. return _bstr_t(_result, false);
  790. }
  791. inline void IDOMProcessingInstruction::Putdata ( _bstr_t value ) {
  792. HRESULT _hr = put_data(value);
  793. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  794. }
  795. //
  796. // interface IDOMNotation wrapper method implementations
  797. //
  798. inline _variant_t IDOMNotation::GetpublicId ( ) {
  799. VARIANT _result;
  800. VariantInit(&_result);
  801. HRESULT _hr = get_publicId(&_result);
  802. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  803. return _variant_t(_result, false);
  804. }
  805. inline _variant_t IDOMNotation::GetsystemId ( ) {
  806. VARIANT _result;
  807. VariantInit(&_result);
  808. HRESULT _hr = get_systemId(&_result);
  809. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  810. return _variant_t(_result, false);
  811. }
  812. //
  813. // interface IDOMEntity wrapper method implementations
  814. //
  815. inline _variant_t IDOMEntity::GetpublicId ( ) {
  816. VARIANT _result;
  817. VariantInit(&_result);
  818. HRESULT _hr = get_publicId(&_result);
  819. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  820. return _variant_t(_result, false);
  821. }
  822. inline _variant_t IDOMEntity::GetsystemId ( ) {
  823. VARIANT _result;
  824. VariantInit(&_result);
  825. HRESULT _hr = get_systemId(&_result);
  826. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  827. return _variant_t(_result, false);
  828. }
  829. inline _bstr_t IDOMEntity::GetnotationName ( ) {
  830. BSTR _result = 0;
  831. HRESULT _hr = get_notationName(&_result);
  832. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  833. return _bstr_t(_result, false);
  834. }
  835. //
  836. // interface IXMLDOMNode wrapper method implementations
  837. //
  838. inline _bstr_t IXMLDOMNode::GetnodeStringType ( ) {
  839. BSTR _result = 0;
  840. HRESULT _hr = get_nodeStringType(&_result);
  841. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  842. return _bstr_t(_result, false);
  843. }
  844. inline _bstr_t IXMLDOMNode::Gettext ( ) {
  845. BSTR _result = 0;
  846. HRESULT _hr = get_text(&_result);
  847. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  848. return _bstr_t(_result, false);
  849. }
  850. inline void IXMLDOMNode::Puttext ( _bstr_t text ) {
  851. HRESULT _hr = put_text(text);
  852. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  853. }
  854. inline VARIANT_BOOL IXMLDOMNode::Getspecified ( ) {
  855. VARIANT_BOOL _result = 0;
  856. HRESULT _hr = get_specified(&_result);
  857. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  858. return _result;
  859. }
  860. inline IXMLDOMNodePtr IXMLDOMNode::Getdefinition ( ) {
  861. struct IXMLDOMNode * _result = 0;
  862. HRESULT _hr = get_definition(&_result);
  863. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  864. return IXMLDOMNodePtr(_result, false);
  865. }
  866. inline _variant_t IXMLDOMNode::GetnodeTypedValue ( ) {
  867. VARIANT _result;
  868. VariantInit(&_result);
  869. HRESULT _hr = get_nodeTypedValue(&_result);
  870. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  871. return _variant_t(_result, false);
  872. }
  873. inline void IXMLDOMNode::PutnodeTypedValue ( const _variant_t & typedValue ) {
  874. HRESULT _hr = put_nodeTypedValue(typedValue);
  875. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  876. }
  877. inline _variant_t IXMLDOMNode::GetdataType ( ) {
  878. VARIANT _result;
  879. VariantInit(&_result);
  880. HRESULT _hr = get_dataType(&_result);
  881. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  882. return _variant_t(_result, false);
  883. }
  884. inline void IXMLDOMNode::PutdataType ( _bstr_t dataTypeName ) {
  885. HRESULT _hr = put_dataType(dataTypeName);
  886. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  887. }
  888. inline _bstr_t IXMLDOMNode::Getxml ( ) {
  889. BSTR _result = 0;
  890. HRESULT _hr = get_xml(&_result);
  891. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  892. return _bstr_t(_result, false);
  893. }
  894. inline _bstr_t IXMLDOMNode::transformNode ( struct IXMLDOMNode * stylesheet ) {
  895. BSTR _result = 0;
  896. HRESULT _hr = raw_transformNode(stylesheet, &_result);
  897. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  898. return _bstr_t(_result, false);
  899. }
  900. inline IXMLDOMNodeListPtr IXMLDOMNode::selectNodes ( _bstr_t queryString ) {
  901. struct IXMLDOMNodeList * _result = 0;
  902. HRESULT _hr = raw_selectNodes(queryString, &_result);
  903. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  904. return IXMLDOMNodeListPtr(_result, false);
  905. }
  906. inline IXMLDOMNodePtr IXMLDOMNode::selectSingleNode ( _bstr_t queryString ) {
  907. struct IXMLDOMNode * _result = 0;
  908. HRESULT _hr = raw_selectSingleNode(queryString, &_result);
  909. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  910. return IXMLDOMNodePtr(_result, false);
  911. }
  912. inline VARIANT_BOOL IXMLDOMNode::Getparsed ( ) {
  913. VARIANT_BOOL _result = 0;
  914. HRESULT _hr = get_parsed(&_result);
  915. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  916. return _result;
  917. }
  918. inline _bstr_t IXMLDOMNode::GetnameSpace ( ) {
  919. BSTR _result = 0;
  920. HRESULT _hr = get_nameSpace(&_result);
  921. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  922. return _bstr_t(_result, false);
  923. }
  924. inline _bstr_t IXMLDOMNode::Getprefix ( ) {
  925. BSTR _result = 0;
  926. HRESULT _hr = get_prefix(&_result);
  927. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  928. return _bstr_t(_result, false);
  929. }
  930. inline _bstr_t IXMLDOMNode::GetbaseName ( ) {
  931. BSTR _result = 0;
  932. HRESULT _hr = get_baseName(&_result);
  933. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  934. return _bstr_t(_result, false);
  935. }
  936. //
  937. // interface IXMLDOMNodeList wrapper method implementations
  938. //
  939. inline IXMLDOMNodePtr IXMLDOMNodeList::nextNode ( ) {
  940. struct IXMLDOMNode * _result = 0;
  941. HRESULT _hr = raw_nextNode(&_result);
  942. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  943. return IXMLDOMNodePtr(_result, false);
  944. }
  945. inline HRESULT IXMLDOMNodeList::reset ( ) {
  946. HRESULT _hr = raw_reset();
  947. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  948. return _hr;
  949. }
  950. inline IUnknownPtr IXMLDOMNodeList::Get_newEnum ( ) {
  951. IUnknown * _result = 0;
  952. HRESULT _hr = get__newEnum(&_result);
  953. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  954. return IUnknownPtr(_result, false);
  955. }
  956. //
  957. // interface IXMLDOMDocument wrapper method implementations
  958. //
  959. inline IXMLDOMNodePtr IXMLDOMDocument::createNode ( const _variant_t & type, _bstr_t name, _bstr_t namespaceURI ) {
  960. struct IXMLDOMNode * _result = 0;
  961. HRESULT _hr = raw_createNode(type, name, namespaceURI, &_result);
  962. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  963. return IXMLDOMNodePtr(_result, false);
  964. }
  965. inline IXMLDOMNodePtr IXMLDOMDocument::nodeFromID ( _bstr_t idString ) {
  966. struct IXMLDOMNode * _result = 0;
  967. HRESULT _hr = raw_nodeFromID(idString, &_result);
  968. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  969. return IXMLDOMNodePtr(_result, false);
  970. }
  971. inline VARIANT_BOOL IXMLDOMDocument::load ( _bstr_t URL ) {
  972. VARIANT_BOOL _result = 0;
  973. HRESULT _hr = raw_load(URL, &_result);
  974. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  975. return _result;
  976. }
  977. inline long IXMLDOMDocument::GetreadyState ( ) {
  978. long _result = 0;
  979. HRESULT _hr = get_readyState(&_result);
  980. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  981. return _result;
  982. }
  983. inline IDOMParseErrorPtr IXMLDOMDocument::GetparseError ( ) {
  984. struct IDOMParseError * _result = 0;
  985. HRESULT _hr = get_parseError(&_result);
  986. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  987. return IDOMParseErrorPtr(_result, false);
  988. }
  989. inline _bstr_t IXMLDOMDocument::GetURL ( ) {
  990. BSTR _result = 0;
  991. HRESULT _hr = get_URL(&_result);
  992. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  993. return _bstr_t(_result, false);
  994. }
  995. inline VARIANT_BOOL IXMLDOMDocument::Getasync ( ) {
  996. VARIANT_BOOL _result = 0;
  997. HRESULT _hr = get_async(&_result);
  998. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  999. return _result;
  1000. }
  1001. inline void IXMLDOMDocument::Putasync ( VARIANT_BOOL isAsync ) {
  1002. HRESULT _hr = put_async(isAsync);
  1003. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1004. }
  1005. inline HRESULT IXMLDOMDocument::abort ( ) {
  1006. HRESULT _hr = raw_abort();
  1007. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1008. return _hr;
  1009. }
  1010. inline VARIANT_BOOL IXMLDOMDocument::loadXML ( _bstr_t xmlString ) {
  1011. VARIANT_BOOL _result = 0;
  1012. HRESULT _hr = raw_loadXML(xmlString, &_result);
  1013. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1014. return _result;
  1015. }
  1016. inline VARIANT_BOOL IXMLDOMDocument::GetvalidateOnParse ( ) {
  1017. VARIANT_BOOL _result = 0;
  1018. HRESULT _hr = get_validateOnParse(&_result);
  1019. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1020. return _result;
  1021. }
  1022. inline void IXMLDOMDocument::PutvalidateOnParse ( VARIANT_BOOL isValidating ) {
  1023. HRESULT _hr = put_validateOnParse(isValidating);
  1024. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1025. }
  1026. inline void IXMLDOMDocument::Putonreadystatechange ( const _variant_t & _arg1 ) {
  1027. HRESULT _hr = put_onreadystatechange(_arg1);
  1028. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1029. }
  1030. inline void IXMLDOMDocument::Putondataavailable ( const _variant_t & _arg1 ) {
  1031. HRESULT _hr = put_ondataavailable(_arg1);
  1032. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1033. }
  1034. inline _bstr_t IXMLDOMDocument::Getxml ( ) {
  1035. BSTR _result = 0;
  1036. HRESULT _hr = get_xml(&_result);
  1037. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1038. return _bstr_t(_result, false);
  1039. }
  1040. inline _bstr_t IXMLDOMDocument::transformNode ( struct IXMLDOMNode * stylesheet ) {
  1041. BSTR _result = 0;
  1042. HRESULT _hr = raw_transformNode(stylesheet, &_result);
  1043. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1044. return _bstr_t(_result, false);
  1045. }
  1046. inline IXMLDOMNodeListPtr IXMLDOMDocument::selectNodes ( _bstr_t queryString ) {
  1047. struct IXMLDOMNodeList * _result = 0;
  1048. HRESULT _hr = raw_selectNodes(queryString, &_result);
  1049. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1050. return IXMLDOMNodeListPtr(_result, false);
  1051. }
  1052. inline IXMLDOMNodePtr IXMLDOMDocument::selectSingleNode ( _bstr_t queryString ) {
  1053. struct IXMLDOMNode * _result = 0;
  1054. HRESULT _hr = raw_selectSingleNode(queryString, &_result);
  1055. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1056. return IXMLDOMNodePtr(_result, false);
  1057. }
  1058. inline VARIANT_BOOL IXMLDOMDocument::Getparsed ( ) {
  1059. VARIANT_BOOL _result = 0;
  1060. HRESULT _hr = get_parsed(&_result);
  1061. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1062. return _result;
  1063. }
  1064. //
  1065. // interface IDOMParseError wrapper method implementations
  1066. //
  1067. inline long IDOMParseError::GeterrorCode ( ) {
  1068. long _result = 0;
  1069. HRESULT _hr = get_errorCode(&_result);
  1070. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1071. return _result;
  1072. }
  1073. inline _bstr_t IDOMParseError::GetURL ( ) {
  1074. BSTR _result = 0;
  1075. HRESULT _hr = get_URL(&_result);
  1076. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1077. return _bstr_t(_result, false);
  1078. }
  1079. inline _bstr_t IDOMParseError::Getreason ( ) {
  1080. BSTR _result = 0;
  1081. HRESULT _hr = get_reason(&_result);
  1082. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1083. return _bstr_t(_result, false);
  1084. }
  1085. inline _bstr_t IDOMParseError::GetsrcText ( ) {
  1086. BSTR _result = 0;
  1087. HRESULT _hr = get_srcText(&_result);
  1088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1089. return _bstr_t(_result, false);
  1090. }
  1091. inline long IDOMParseError::Getline ( ) {
  1092. long _result = 0;
  1093. HRESULT _hr = get_line(&_result);
  1094. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1095. return _result;
  1096. }
  1097. inline long IDOMParseError::Getlinepos ( ) {
  1098. long _result = 0;
  1099. HRESULT _hr = get_linepos(&_result);
  1100. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1101. return _result;
  1102. }
  1103. inline long IDOMParseError::Getfilepos ( ) {
  1104. long _result = 0;
  1105. HRESULT _hr = get_filepos(&_result);
  1106. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1107. return _result;
  1108. }
  1109. //
  1110. // interface IXMLDOMNamedNodeMap wrapper method implementations
  1111. //
  1112. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::getQualifiedItem ( _bstr_t baseName, _bstr_t namespaceURI ) {
  1113. struct IXMLDOMNode * _result = 0;
  1114. HRESULT _hr = raw_getQualifiedItem(baseName, namespaceURI, &_result);
  1115. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1116. return IXMLDOMNodePtr(_result, false);
  1117. }
  1118. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::removeQualifiedItem ( _bstr_t baseName, _bstr_t namespaceURI ) {
  1119. struct IXMLDOMNode * _result = 0;
  1120. HRESULT _hr = raw_removeQualifiedItem(baseName, namespaceURI, &_result);
  1121. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1122. return IXMLDOMNodePtr(_result, false);
  1123. }
  1124. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::nextNode ( ) {
  1125. struct IXMLDOMNode * _result = 0;
  1126. HRESULT _hr = raw_nextNode(&_result);
  1127. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1128. return IXMLDOMNodePtr(_result, false);
  1129. }
  1130. inline HRESULT IXMLDOMNamedNodeMap::reset ( ) {
  1131. HRESULT _hr = raw_reset();
  1132. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1133. return _hr;
  1134. }
  1135. inline IUnknownPtr IXMLDOMNamedNodeMap::Get_newEnum ( ) {
  1136. IUnknown * _result = 0;
  1137. HRESULT _hr = get__newEnum(&_result);
  1138. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1139. return IUnknownPtr(_result, false);
  1140. }
  1141. //
  1142. // interface IXTLRuntime wrapper method implementations
  1143. //
  1144. inline long IXTLRuntime::uniqueID ( struct IDOMNode * pNode ) {
  1145. long _result = 0;
  1146. HRESULT _hr = raw_uniqueID(pNode, &_result);
  1147. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1148. return _result;
  1149. }
  1150. inline long IXTLRuntime::depth ( struct IDOMNode * pNode ) {
  1151. long _result = 0;
  1152. HRESULT _hr = raw_depth(pNode, &_result);
  1153. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1154. return _result;
  1155. }
  1156. inline long IXTLRuntime::childNumber ( struct IDOMNode * pNode ) {
  1157. long _result = 0;
  1158. HRESULT _hr = raw_childNumber(pNode, &_result);
  1159. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1160. return _result;
  1161. }
  1162. inline long IXTLRuntime::ancestorChildNumber ( _bstr_t bstrNodeName, struct IDOMNode * pNode ) {
  1163. long _result = 0;
  1164. HRESULT _hr = raw_ancestorChildNumber(bstrNodeName, pNode, &_result);
  1165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1166. return _result;
  1167. }
  1168. inline long IXTLRuntime::absoluteChildNumber ( struct IDOMNode * pNode ) {
  1169. long _result = 0;
  1170. HRESULT _hr = raw_absoluteChildNumber(pNode, &_result);
  1171. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1172. return _result;
  1173. }
  1174. inline _bstr_t IXTLRuntime::formatIndex ( long lIndex, _bstr_t bstrFormat ) {
  1175. BSTR _result = 0;
  1176. HRESULT _hr = raw_formatIndex(lIndex, bstrFormat, &_result);
  1177. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1178. return _bstr_t(_result, false);
  1179. }
  1180. inline _bstr_t IXTLRuntime::formatNumber ( double dblNumber, _bstr_t bstrFormat ) {
  1181. BSTR _result = 0;
  1182. HRESULT _hr = raw_formatNumber(dblNumber, bstrFormat, &_result);
  1183. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1184. return _bstr_t(_result, false);
  1185. }
  1186. inline _bstr_t IXTLRuntime::formatDate ( const _variant_t & varDate, _bstr_t bstrFormat, const _variant_t & varDestLocale ) {
  1187. BSTR _result = 0;
  1188. HRESULT _hr = raw_formatDate(varDate, bstrFormat, varDestLocale, &_result);
  1189. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1190. return _bstr_t(_result, false);
  1191. }
  1192. inline _bstr_t IXTLRuntime::formatTime ( const _variant_t & varTime, _bstr_t bstrFormat, const _variant_t & varDestLocale ) {
  1193. BSTR _result = 0;
  1194. HRESULT _hr = raw_formatTime(varTime, bstrFormat, varDestLocale, &_result);
  1195. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1196. return _bstr_t(_result, false);
  1197. }
  1198. //
  1199. // dispinterface XMLDOMDocumentEvents wrapper method implementations
  1200. //
  1201. inline HRESULT XMLDOMDocumentEvents::ondataavailable ( ) {
  1202. HRESULT _result = 0;
  1203. _com_dispatch_method(this, 0x2a2, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
  1204. return _result;
  1205. }
  1206. inline HRESULT XMLDOMDocumentEvents::onreadystatechange ( ) {
  1207. HRESULT _result = 0;
  1208. _com_dispatch_method(this, DISPID_READYSTATECHANGE, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
  1209. return _result;
  1210. }
  1211. //
  1212. // interface IXMLHttpRequest wrapper method implementations
  1213. //
  1214. inline HRESULT IXMLHttpRequest::Open ( _bstr_t bstrMethod, _bstr_t bstrUrl, const _variant_t & bstrUser, const _variant_t & bstrPassword ) {
  1215. HRESULT _hr = raw_Open(bstrMethod, bstrUrl, bstrUser, bstrPassword);
  1216. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1217. return _hr;
  1218. }
  1219. inline HRESULT IXMLHttpRequest::SetHeader ( _bstr_t bstrHeader, _bstr_t bstrValue ) {
  1220. HRESULT _hr = raw_SetHeader(bstrHeader, bstrValue);
  1221. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1222. return _hr;
  1223. }
  1224. inline _bstr_t IXMLHttpRequest::GetHeader ( _bstr_t bstrHeader ) {
  1225. BSTR _result = 0;
  1226. HRESULT _hr = raw_GetHeader(bstrHeader, &_result);
  1227. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1228. return _bstr_t(_result, false);
  1229. }
  1230. inline HRESULT IXMLHttpRequest::Send ( ) {
  1231. HRESULT _hr = raw_Send();
  1232. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1233. return _hr;
  1234. }
  1235. inline void IXMLHttpRequest::PutRequestBody ( const _variant_t & pvarVal ) {
  1236. HRESULT _hr = put_RequestBody(pvarVal);
  1237. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1238. }
  1239. inline _variant_t IXMLHttpRequest::GetRequestBody ( ) {
  1240. VARIANT _result;
  1241. VariantInit(&_result);
  1242. HRESULT _hr = get_RequestBody(&_result);
  1243. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1244. return _variant_t(_result, false);
  1245. }
  1246. inline long IXMLHttpRequest::GetStatus ( ) {
  1247. long _result = 0;
  1248. HRESULT _hr = get_Status(&_result);
  1249. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1250. return _result;
  1251. }
  1252. inline _bstr_t IXMLHttpRequest::GetStatusText ( ) {
  1253. BSTR _result = 0;
  1254. HRESULT _hr = get_StatusText(&_result);
  1255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1256. return _bstr_t(_result, false);
  1257. }
  1258. inline IDispatchPtr IXMLHttpRequest::GetResponseXML ( ) {
  1259. IDispatch * _result = 0;
  1260. HRESULT _hr = get_ResponseXML(&_result);
  1261. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1262. return IDispatchPtr(_result, false);
  1263. }
  1264. inline _variant_t IXMLHttpRequest::GetResponseBody ( ) {
  1265. VARIANT _result;
  1266. VariantInit(&_result);
  1267. HRESULT _hr = get_ResponseBody(&_result);
  1268. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1269. return _variant_t(_result, false);
  1270. }
  1271. //
  1272. // interface IXMLDSOControl wrapper method implementations
  1273. //
  1274. inline IXMLDOMDocumentPtr IXMLDSOControl::GetXMLDocument ( ) {
  1275. struct IXMLDOMDocument * _result = 0;
  1276. HRESULT _hr = get_XMLDocument(&_result);
  1277. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1278. return IXMLDOMDocumentPtr(_result, false);
  1279. }
  1280. inline void IXMLDSOControl::PutXMLDocument ( struct IXMLDOMDocument * ppDoc ) {
  1281. HRESULT _hr = put_XMLDocument(ppDoc);
  1282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1283. }
  1284. inline long IXMLDSOControl::GetJavaDSOCompatible ( ) {
  1285. long _result = 0;
  1286. HRESULT _hr = get_JavaDSOCompatible(&_result);
  1287. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1288. return _result;
  1289. }
  1290. inline void IXMLDSOControl::PutJavaDSOCompatible ( long fJavaDSOCompatible ) {
  1291. HRESULT _hr = put_JavaDSOCompatible(fJavaDSOCompatible);
  1292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1293. }
  1294. inline _bstr_t IXMLDSOControl::GetFilterSchema ( ) {
  1295. BSTR _result = 0;
  1296. HRESULT _hr = get_FilterSchema(&_result);
  1297. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1298. return _bstr_t(_result, false);
  1299. }
  1300. inline void IXMLDSOControl::PutFilterSchema ( _bstr_t pFilterSchemaUrl ) {
  1301. HRESULT _hr = put_FilterSchema(pFilterSchemaUrl);
  1302. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1303. }
  1304. inline long IXMLDSOControl::GetreadyState ( ) {
  1305. long _result = 0;
  1306. HRESULT _hr = get_readyState(&_result);
  1307. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1308. return _result;
  1309. }