Leaked source code of windows server 2003
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.

657 lines
22 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 13.00.9176 (915640eb).
  2. //
  3. // e:\nt\ds\security\passport\passportmanager\obj\i386\asp.tli
  4. //
  5. // Wrapper implementations for Win32 type library asp.dll
  6. // compiler-generated file created 03/07/02 at 20:41:23 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface IStringList wrapper method implementations
  10. //
  11. inline _variant_t IStringList::GetItem ( const _variant_t & i ) {
  12. VARIANT _result;
  13. VariantInit(&_result);
  14. HRESULT _hr = get_Item(i, &_result);
  15. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  16. return _variant_t(_result, false);
  17. }
  18. inline int IStringList::GetCount ( ) {
  19. int _result = 0;
  20. HRESULT _hr = get_Count(&_result);
  21. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  22. return _result;
  23. }
  24. inline IUnknownPtr IStringList::Get_NewEnum ( ) {
  25. IUnknown * _result = 0;
  26. HRESULT _hr = get__NewEnum(&_result);
  27. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  28. return IUnknownPtr(_result, false);
  29. }
  30. //
  31. // interface IRequestDictionary wrapper method implementations
  32. //
  33. inline _variant_t IRequestDictionary::GetItem ( const _variant_t & Var ) {
  34. VARIANT _result;
  35. VariantInit(&_result);
  36. HRESULT _hr = get_Item(Var, &_result);
  37. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  38. return _variant_t(_result, false);
  39. }
  40. inline IUnknownPtr IRequestDictionary::Get_NewEnum ( ) {
  41. IUnknown * _result = 0;
  42. HRESULT _hr = get__NewEnum(&_result);
  43. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  44. return IUnknownPtr(_result, false);
  45. }
  46. inline int IRequestDictionary::GetCount ( ) {
  47. int _result = 0;
  48. HRESULT _hr = get_Count(&_result);
  49. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  50. return _result;
  51. }
  52. inline _variant_t IRequestDictionary::GetKey ( const _variant_t & VarKey ) {
  53. VARIANT _result;
  54. VariantInit(&_result);
  55. HRESULT _hr = get_Key(VarKey, &_result);
  56. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  57. return _variant_t(_result, false);
  58. }
  59. //
  60. // interface IRequest wrapper method implementations
  61. //
  62. inline IDispatchPtr IRequest::GetItem ( _bstr_t bstrVar ) {
  63. IDispatch * _result = 0;
  64. HRESULT _hr = get_Item(bstrVar, &_result);
  65. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  66. return IDispatchPtr(_result, false);
  67. }
  68. inline IRequestDictionaryPtr IRequest::GetQueryString ( ) {
  69. struct IRequestDictionary * _result = 0;
  70. HRESULT _hr = get_QueryString(&_result);
  71. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  72. return IRequestDictionaryPtr(_result, false);
  73. }
  74. inline IRequestDictionaryPtr IRequest::GetForm ( ) {
  75. struct IRequestDictionary * _result = 0;
  76. HRESULT _hr = get_Form(&_result);
  77. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  78. return IRequestDictionaryPtr(_result, false);
  79. }
  80. inline IRequestDictionaryPtr IRequest::GetBody ( ) {
  81. struct IRequestDictionary * _result = 0;
  82. HRESULT _hr = get_Body(&_result);
  83. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  84. return IRequestDictionaryPtr(_result, false);
  85. }
  86. inline IRequestDictionaryPtr IRequest::GetServerVariables ( ) {
  87. struct IRequestDictionary * _result = 0;
  88. HRESULT _hr = get_ServerVariables(&_result);
  89. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  90. return IRequestDictionaryPtr(_result, false);
  91. }
  92. inline IRequestDictionaryPtr IRequest::GetClientCertificate ( ) {
  93. struct IRequestDictionary * _result = 0;
  94. HRESULT _hr = get_ClientCertificate(&_result);
  95. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  96. return IRequestDictionaryPtr(_result, false);
  97. }
  98. inline IRequestDictionaryPtr IRequest::GetCookies ( ) {
  99. struct IRequestDictionary * _result = 0;
  100. HRESULT _hr = get_Cookies(&_result);
  101. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  102. return IRequestDictionaryPtr(_result, false);
  103. }
  104. inline long IRequest::GetTotalBytes ( ) {
  105. long _result = 0;
  106. HRESULT _hr = get_TotalBytes(&_result);
  107. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  108. return _result;
  109. }
  110. inline _variant_t IRequest::BinaryRead ( VARIANT * pvarCountToRead ) {
  111. VARIANT _result;
  112. VariantInit(&_result);
  113. HRESULT _hr = raw_BinaryRead(pvarCountToRead, &_result);
  114. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  115. return _variant_t(_result, false);
  116. }
  117. //
  118. // interface IReadCookie wrapper method implementations
  119. //
  120. inline _variant_t IReadCookie::GetItem ( const _variant_t & Var ) {
  121. VARIANT _result;
  122. VariantInit(&_result);
  123. HRESULT _hr = get_Item(Var, &_result);
  124. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  125. return _variant_t(_result, false);
  126. }
  127. inline VARIANT_BOOL IReadCookie::GetHasKeys ( ) {
  128. VARIANT_BOOL _result = 0;
  129. HRESULT _hr = get_HasKeys(&_result);
  130. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  131. return _result;
  132. }
  133. inline IUnknownPtr IReadCookie::Get_NewEnum ( ) {
  134. IUnknown * _result = 0;
  135. HRESULT _hr = get__NewEnum(&_result);
  136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  137. return IUnknownPtr(_result, false);
  138. }
  139. inline int IReadCookie::GetCount ( ) {
  140. int _result = 0;
  141. HRESULT _hr = get_Count(&_result);
  142. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  143. return _result;
  144. }
  145. inline _variant_t IReadCookie::GetKey ( const _variant_t & VarKey ) {
  146. VARIANT _result;
  147. VariantInit(&_result);
  148. HRESULT _hr = get_Key(VarKey, &_result);
  149. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  150. return _variant_t(_result, false);
  151. }
  152. //
  153. // interface IWriteCookie wrapper method implementations
  154. //
  155. inline void IWriteCookie::PutItem ( const _variant_t & Key, _bstr_t _arg2 ) {
  156. HRESULT _hr = put_Item(Key, _arg2);
  157. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  158. }
  159. inline void IWriteCookie::PutExpires ( DATE _arg1 ) {
  160. HRESULT _hr = put_Expires(_arg1);
  161. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  162. }
  163. inline void IWriteCookie::PutDomain ( _bstr_t _arg1 ) {
  164. HRESULT _hr = put_Domain(_arg1);
  165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  166. }
  167. inline void IWriteCookie::PutPath ( _bstr_t _arg1 ) {
  168. HRESULT _hr = put_Path(_arg1);
  169. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  170. }
  171. inline void IWriteCookie::PutSecure ( VARIANT_BOOL _arg1 ) {
  172. HRESULT _hr = put_Secure(_arg1);
  173. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  174. }
  175. inline VARIANT_BOOL IWriteCookie::GetHasKeys ( ) {
  176. VARIANT_BOOL _result = 0;
  177. HRESULT _hr = get_HasKeys(&_result);
  178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  179. return _result;
  180. }
  181. inline IUnknownPtr IWriteCookie::Get_NewEnum ( ) {
  182. IUnknown * _result = 0;
  183. HRESULT _hr = get__NewEnum(&_result);
  184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  185. return IUnknownPtr(_result, false);
  186. }
  187. //
  188. // interface IResponse wrapper method implementations
  189. //
  190. inline VARIANT_BOOL IResponse::GetBuffer ( ) {
  191. VARIANT_BOOL _result = 0;
  192. HRESULT _hr = get_Buffer(&_result);
  193. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  194. return _result;
  195. }
  196. inline void IResponse::PutBuffer ( VARIANT_BOOL fIsBuffering ) {
  197. HRESULT _hr = put_Buffer(fIsBuffering);
  198. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  199. }
  200. inline _bstr_t IResponse::GetContentType ( ) {
  201. BSTR _result = 0;
  202. HRESULT _hr = get_ContentType(&_result);
  203. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  204. return _bstr_t(_result, false);
  205. }
  206. inline void IResponse::PutContentType ( _bstr_t pbstrContentTypeRet ) {
  207. HRESULT _hr = put_ContentType(pbstrContentTypeRet);
  208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  209. }
  210. inline _variant_t IResponse::GetExpires ( ) {
  211. VARIANT _result;
  212. VariantInit(&_result);
  213. HRESULT _hr = get_Expires(&_result);
  214. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  215. return _variant_t(_result, false);
  216. }
  217. inline void IResponse::PutExpires ( long pvarExpiresMinutesRet ) {
  218. HRESULT _hr = put_Expires(pvarExpiresMinutesRet);
  219. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  220. }
  221. inline _variant_t IResponse::GetExpiresAbsolute ( ) {
  222. VARIANT _result;
  223. VariantInit(&_result);
  224. HRESULT _hr = get_ExpiresAbsolute(&_result);
  225. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  226. return _variant_t(_result, false);
  227. }
  228. inline void IResponse::PutExpiresAbsolute ( DATE pvarExpiresRet ) {
  229. HRESULT _hr = put_ExpiresAbsolute(pvarExpiresRet);
  230. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  231. }
  232. inline IRequestDictionaryPtr IResponse::GetCookies ( ) {
  233. struct IRequestDictionary * _result = 0;
  234. HRESULT _hr = get_Cookies(&_result);
  235. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  236. return IRequestDictionaryPtr(_result, false);
  237. }
  238. inline _bstr_t IResponse::GetStatus ( ) {
  239. BSTR _result = 0;
  240. HRESULT _hr = get_Status(&_result);
  241. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  242. return _bstr_t(_result, false);
  243. }
  244. inline void IResponse::PutStatus ( _bstr_t pbstrStatusRet ) {
  245. HRESULT _hr = put_Status(pbstrStatusRet);
  246. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  247. }
  248. inline HRESULT IResponse::Add ( _bstr_t bstrHeaderValue, _bstr_t bstrHeaderName ) {
  249. HRESULT _hr = raw_Add(bstrHeaderValue, bstrHeaderName);
  250. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  251. return _hr;
  252. }
  253. inline HRESULT IResponse::AddHeader ( _bstr_t bstrHeaderName, _bstr_t bstrHeaderValue ) {
  254. HRESULT _hr = raw_AddHeader(bstrHeaderName, bstrHeaderValue);
  255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  256. return _hr;
  257. }
  258. inline HRESULT IResponse::AppendToLog ( _bstr_t bstrLogEntry ) {
  259. HRESULT _hr = raw_AppendToLog(bstrLogEntry);
  260. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  261. return _hr;
  262. }
  263. inline HRESULT IResponse::BinaryWrite ( const _variant_t & varInput ) {
  264. HRESULT _hr = raw_BinaryWrite(varInput);
  265. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  266. return _hr;
  267. }
  268. inline HRESULT IResponse::Clear ( ) {
  269. HRESULT _hr = raw_Clear();
  270. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  271. return _hr;
  272. }
  273. inline HRESULT IResponse::End ( ) {
  274. HRESULT _hr = raw_End();
  275. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  276. return _hr;
  277. }
  278. inline HRESULT IResponse::Flush ( ) {
  279. HRESULT _hr = raw_Flush();
  280. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  281. return _hr;
  282. }
  283. inline HRESULT IResponse::Redirect ( _bstr_t bstrURL ) {
  284. HRESULT _hr = raw_Redirect(bstrURL);
  285. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  286. return _hr;
  287. }
  288. inline HRESULT IResponse::Write ( const _variant_t & varText ) {
  289. HRESULT _hr = raw_Write(varText);
  290. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  291. return _hr;
  292. }
  293. inline HRESULT IResponse::WriteBlock ( short iBlockNumber ) {
  294. HRESULT _hr = raw_WriteBlock(iBlockNumber);
  295. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  296. return _hr;
  297. }
  298. inline VARIANT_BOOL IResponse::IsClientConnected ( ) {
  299. VARIANT_BOOL _result = 0;
  300. HRESULT _hr = raw_IsClientConnected(&_result);
  301. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  302. return _result;
  303. }
  304. inline _bstr_t IResponse::GetCharSet ( ) {
  305. BSTR _result = 0;
  306. HRESULT _hr = get_CharSet(&_result);
  307. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  308. return _bstr_t(_result, false);
  309. }
  310. inline void IResponse::PutCharSet ( _bstr_t pbstrCharSetRet ) {
  311. HRESULT _hr = put_CharSet(pbstrCharSetRet);
  312. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  313. }
  314. inline HRESULT IResponse::Pics ( _bstr_t bstrHeaderValue ) {
  315. HRESULT _hr = raw_Pics(bstrHeaderValue);
  316. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  317. return _hr;
  318. }
  319. inline _bstr_t IResponse::GetCacheControl ( ) {
  320. BSTR _result = 0;
  321. HRESULT _hr = get_CacheControl(&_result);
  322. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  323. return _bstr_t(_result, false);
  324. }
  325. inline void IResponse::PutCacheControl ( _bstr_t pbstrCacheControl ) {
  326. HRESULT _hr = put_CacheControl(pbstrCacheControl);
  327. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  328. }
  329. //
  330. // interface IVariantDictionary wrapper method implementations
  331. //
  332. inline _variant_t IVariantDictionary::GetItem ( const _variant_t & VarKey ) {
  333. VARIANT _result;
  334. VariantInit(&_result);
  335. HRESULT _hr = get_Item(VarKey, &_result);
  336. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  337. return _variant_t(_result, false);
  338. }
  339. inline void IVariantDictionary::PutItem ( const _variant_t & VarKey, const _variant_t & pvar ) {
  340. HRESULT _hr = put_Item(VarKey, pvar);
  341. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  342. }
  343. inline void IVariantDictionary::PutRefItem ( const _variant_t & VarKey, const _variant_t & pvar ) {
  344. HRESULT _hr = putref_Item(VarKey, pvar);
  345. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  346. }
  347. inline _variant_t IVariantDictionary::GetKey ( const _variant_t & VarKey ) {
  348. VARIANT _result;
  349. VariantInit(&_result);
  350. HRESULT _hr = get_Key(VarKey, &_result);
  351. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  352. return _variant_t(_result, false);
  353. }
  354. inline int IVariantDictionary::GetCount ( ) {
  355. int _result = 0;
  356. HRESULT _hr = get_Count(&_result);
  357. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  358. return _result;
  359. }
  360. inline IUnknownPtr IVariantDictionary::Get_NewEnum ( ) {
  361. IUnknown * _result = 0;
  362. HRESULT _hr = get__NewEnum(&_result);
  363. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  364. return IUnknownPtr(_result, false);
  365. }
  366. //
  367. // interface ISessionObject wrapper method implementations
  368. //
  369. inline _bstr_t ISessionObject::GetSessionID ( ) {
  370. BSTR _result = 0;
  371. HRESULT _hr = get_SessionID(&_result);
  372. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  373. return _bstr_t(_result, false);
  374. }
  375. inline _variant_t ISessionObject::GetValue ( _bstr_t bstrValue ) {
  376. VARIANT _result;
  377. VariantInit(&_result);
  378. HRESULT _hr = get_Value(bstrValue, &_result);
  379. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  380. return _variant_t(_result, false);
  381. }
  382. inline void ISessionObject::PutValue ( _bstr_t bstrValue, const _variant_t & pvar ) {
  383. HRESULT _hr = put_Value(bstrValue, pvar);
  384. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  385. }
  386. inline void ISessionObject::PutRefValue ( _bstr_t bstrValue, const _variant_t & pvar ) {
  387. HRESULT _hr = putref_Value(bstrValue, pvar);
  388. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  389. }
  390. inline long ISessionObject::GetTimeout ( ) {
  391. long _result = 0;
  392. HRESULT _hr = get_Timeout(&_result);
  393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  394. return _result;
  395. }
  396. inline void ISessionObject::PutTimeout ( long plvar ) {
  397. HRESULT _hr = put_Timeout(plvar);
  398. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  399. }
  400. inline HRESULT ISessionObject::Abandon ( ) {
  401. HRESULT _hr = raw_Abandon();
  402. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  403. return _hr;
  404. }
  405. inline long ISessionObject::GetCodePage ( ) {
  406. long _result = 0;
  407. HRESULT _hr = get_CodePage(&_result);
  408. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  409. return _result;
  410. }
  411. inline void ISessionObject::PutCodePage ( long plvar ) {
  412. HRESULT _hr = put_CodePage(plvar);
  413. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  414. }
  415. inline long ISessionObject::GetLCID ( ) {
  416. long _result = 0;
  417. HRESULT _hr = get_LCID(&_result);
  418. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  419. return _result;
  420. }
  421. inline void ISessionObject::PutLCID ( long plvar ) {
  422. HRESULT _hr = put_LCID(plvar);
  423. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  424. }
  425. inline IVariantDictionaryPtr ISessionObject::GetStaticObjects ( ) {
  426. struct IVariantDictionary * _result = 0;
  427. HRESULT _hr = get_StaticObjects(&_result);
  428. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  429. return IVariantDictionaryPtr(_result, false);
  430. }
  431. inline IVariantDictionaryPtr ISessionObject::GetContents ( ) {
  432. struct IVariantDictionary * _result = 0;
  433. HRESULT _hr = get_Contents(&_result);
  434. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  435. return IVariantDictionaryPtr(_result, false);
  436. }
  437. //
  438. // interface IApplicationObject wrapper method implementations
  439. //
  440. inline _variant_t IApplicationObject::GetValue ( _bstr_t bstrValue ) {
  441. VARIANT _result;
  442. VariantInit(&_result);
  443. HRESULT _hr = get_Value(bstrValue, &_result);
  444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  445. return _variant_t(_result, false);
  446. }
  447. inline void IApplicationObject::PutValue ( _bstr_t bstrValue, const _variant_t & pvar ) {
  448. HRESULT _hr = put_Value(bstrValue, pvar);
  449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  450. }
  451. inline void IApplicationObject::PutRefValue ( _bstr_t bstrValue, const _variant_t & pvar ) {
  452. HRESULT _hr = putref_Value(bstrValue, pvar);
  453. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  454. }
  455. inline HRESULT IApplicationObject::Lock ( ) {
  456. HRESULT _hr = raw_Lock();
  457. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  458. return _hr;
  459. }
  460. inline HRESULT IApplicationObject::UnLock ( ) {
  461. HRESULT _hr = raw_UnLock();
  462. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  463. return _hr;
  464. }
  465. inline IVariantDictionaryPtr IApplicationObject::GetStaticObjects ( ) {
  466. struct IVariantDictionary * _result = 0;
  467. HRESULT _hr = get_StaticObjects(&_result);
  468. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  469. return IVariantDictionaryPtr(_result, false);
  470. }
  471. inline IVariantDictionaryPtr IApplicationObject::GetContents ( ) {
  472. struct IVariantDictionary * _result = 0;
  473. HRESULT _hr = get_Contents(&_result);
  474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  475. return IVariantDictionaryPtr(_result, false);
  476. }
  477. //
  478. // interface IServer wrapper method implementations
  479. //
  480. inline long IServer::GetScriptTimeout ( ) {
  481. long _result = 0;
  482. HRESULT _hr = get_ScriptTimeout(&_result);
  483. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  484. return _result;
  485. }
  486. inline void IServer::PutScriptTimeout ( long plTimeoutSeconds ) {
  487. HRESULT _hr = put_ScriptTimeout(plTimeoutSeconds);
  488. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  489. }
  490. inline IDispatchPtr IServer::CreateObject ( _bstr_t bstrProgID ) {
  491. IDispatch * _result = 0;
  492. HRESULT _hr = raw_CreateObject(bstrProgID, &_result);
  493. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  494. return IDispatchPtr(_result, false);
  495. }
  496. inline _bstr_t IServer::HTMLEncode ( _bstr_t bstrIn ) {
  497. BSTR _result = 0;
  498. HRESULT _hr = raw_HTMLEncode(bstrIn, &_result);
  499. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  500. return _bstr_t(_result, false);
  501. }
  502. inline _bstr_t IServer::MapPath ( _bstr_t bstrLogicalPath ) {
  503. BSTR _result = 0;
  504. HRESULT _hr = raw_MapPath(bstrLogicalPath, &_result);
  505. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  506. return _bstr_t(_result, false);
  507. }
  508. inline _bstr_t IServer::URLEncode ( _bstr_t bstrIn ) {
  509. BSTR _result = 0;
  510. HRESULT _hr = raw_URLEncode(bstrIn, &_result);
  511. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  512. return _bstr_t(_result, false);
  513. }
  514. inline _bstr_t IServer::URLPathEncode ( _bstr_t bstrIn ) {
  515. BSTR _result = 0;
  516. HRESULT _hr = raw_URLPathEncode(bstrIn, &_result);
  517. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  518. return _bstr_t(_result, false);
  519. }
  520. //
  521. // interface IScriptingContext wrapper method implementations
  522. //
  523. inline IRequestPtr IScriptingContext::GetRequest ( ) {
  524. struct IRequest * _result = 0;
  525. HRESULT _hr = get_Request(&_result);
  526. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  527. return IRequestPtr(_result, false);
  528. }
  529. inline IResponsePtr IScriptingContext::GetResponse ( ) {
  530. struct IResponse * _result = 0;
  531. HRESULT _hr = get_Response(&_result);
  532. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  533. return IResponsePtr(_result, false);
  534. }
  535. inline IServerPtr IScriptingContext::GetServer ( ) {
  536. struct IServer * _result = 0;
  537. HRESULT _hr = get_Server(&_result);
  538. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  539. return IServerPtr(_result, false);
  540. }
  541. inline ISessionObjectPtr IScriptingContext::GetSession ( ) {
  542. struct ISessionObject * _result = 0;
  543. HRESULT _hr = get_Session(&_result);
  544. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  545. return ISessionObjectPtr(_result, false);
  546. }
  547. inline IApplicationObjectPtr IScriptingContext::GetApplication ( ) {
  548. struct IApplicationObject * _result = 0;
  549. HRESULT _hr = get_Application(&_result);
  550. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  551. return IApplicationObjectPtr(_result, false);
  552. }