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.

760 lines
26 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (3bbb61ea).
  2. //
  3. // cdosys.tli
  4. //
  5. // Wrapper implementations for Win32 type library cdosys.dll
  6. // compiler-generated file created 12/18/01 at 13:49:39 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface IBodyParts wrapper method implementations
  10. //
  11. inline long IBodyParts::GetCount ( ) {
  12. long _result;
  13. HRESULT _hr = get_Count(&_result);
  14. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  15. return _result;
  16. }
  17. inline IBodyPartPtr IBodyParts::GetItem ( long Index ) {
  18. struct IBodyPart * _result;
  19. HRESULT _hr = get_Item(Index, &_result);
  20. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  21. return IBodyPartPtr(_result, false);
  22. }
  23. inline IUnknownPtr IBodyParts::Get_NewEnum ( ) {
  24. IUnknown * _result;
  25. HRESULT _hr = get__NewEnum(&_result);
  26. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  27. return IUnknownPtr(_result, false);
  28. }
  29. inline HRESULT IBodyParts::Delete ( const _variant_t & varBP ) {
  30. HRESULT _hr = raw_Delete(varBP);
  31. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  32. return _hr;
  33. }
  34. inline HRESULT IBodyParts::DeleteAll ( ) {
  35. HRESULT _hr = raw_DeleteAll();
  36. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  37. return _hr;
  38. }
  39. inline IBodyPartPtr IBodyParts::Add ( long Index ) {
  40. struct IBodyPart * _result;
  41. HRESULT _hr = raw_Add(Index, &_result);
  42. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  43. return IBodyPartPtr(_result, false);
  44. }
  45. //
  46. // interface IBodyPart wrapper method implementations
  47. //
  48. inline IBodyPartsPtr IBodyPart::GetBodyParts ( ) {
  49. struct IBodyParts * _result;
  50. HRESULT _hr = get_BodyParts(&_result);
  51. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  52. return IBodyPartsPtr(_result, false);
  53. }
  54. inline _bstr_t IBodyPart::GetContentTransferEncoding ( ) {
  55. BSTR _result;
  56. HRESULT _hr = get_ContentTransferEncoding(&_result);
  57. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  58. return _bstr_t(_result, false);
  59. }
  60. inline void IBodyPart::PutContentTransferEncoding ( _bstr_t pContentTransferEncoding ) {
  61. HRESULT _hr = put_ContentTransferEncoding(pContentTransferEncoding);
  62. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  63. }
  64. inline _bstr_t IBodyPart::GetContentMediaType ( ) {
  65. BSTR _result;
  66. HRESULT _hr = get_ContentMediaType(&_result);
  67. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  68. return _bstr_t(_result, false);
  69. }
  70. inline void IBodyPart::PutContentMediaType ( _bstr_t pContentMediaType ) {
  71. HRESULT _hr = put_ContentMediaType(pContentMediaType);
  72. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  73. }
  74. inline FieldsPtr IBodyPart::GetFields ( ) {
  75. struct Fields * _result;
  76. HRESULT _hr = get_Fields(&_result);
  77. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  78. return FieldsPtr(_result, false);
  79. }
  80. inline _bstr_t IBodyPart::GetCharset ( ) {
  81. BSTR _result;
  82. HRESULT _hr = get_Charset(&_result);
  83. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  84. return _bstr_t(_result, false);
  85. }
  86. inline void IBodyPart::PutCharset ( _bstr_t pCharset ) {
  87. HRESULT _hr = put_Charset(pCharset);
  88. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  89. }
  90. inline _bstr_t IBodyPart::GetFileName ( ) {
  91. BSTR _result;
  92. HRESULT _hr = get_FileName(&_result);
  93. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  94. return _bstr_t(_result, false);
  95. }
  96. inline IDataSourcePtr IBodyPart::GetDataSource ( ) {
  97. struct IDataSource * _result;
  98. HRESULT _hr = get_DataSource(&_result);
  99. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  100. return IDataSourcePtr(_result, false);
  101. }
  102. inline _bstr_t IBodyPart::GetContentClass ( ) {
  103. BSTR _result;
  104. HRESULT _hr = get_ContentClass(&_result);
  105. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  106. return _bstr_t(_result, false);
  107. }
  108. inline void IBodyPart::PutContentClass ( _bstr_t pContentClass ) {
  109. HRESULT _hr = put_ContentClass(pContentClass);
  110. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  111. }
  112. inline _bstr_t IBodyPart::GetContentClassName ( ) {
  113. BSTR _result;
  114. HRESULT _hr = get_ContentClassName(&_result);
  115. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  116. return _bstr_t(_result, false);
  117. }
  118. inline void IBodyPart::PutContentClassName ( _bstr_t pContentClassName ) {
  119. HRESULT _hr = put_ContentClassName(pContentClassName);
  120. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  121. }
  122. inline IBodyPartPtr IBodyPart::GetParent ( ) {
  123. struct IBodyPart * _result;
  124. HRESULT _hr = get_Parent(&_result);
  125. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  126. return IBodyPartPtr(_result, false);
  127. }
  128. inline IBodyPartPtr IBodyPart::AddBodyPart ( long Index ) {
  129. struct IBodyPart * _result;
  130. HRESULT _hr = raw_AddBodyPart(Index, &_result);
  131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  132. return IBodyPartPtr(_result, false);
  133. }
  134. inline HRESULT IBodyPart::SaveToFile ( _bstr_t FileName ) {
  135. HRESULT _hr = raw_SaveToFile(FileName);
  136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  137. return _hr;
  138. }
  139. inline _StreamPtr IBodyPart::GetEncodedContentStream ( ) {
  140. struct _Stream * _result;
  141. HRESULT _hr = raw_GetEncodedContentStream(&_result);
  142. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  143. return _StreamPtr(_result, false);
  144. }
  145. inline _StreamPtr IBodyPart::GetDecodedContentStream ( ) {
  146. struct _Stream * _result;
  147. HRESULT _hr = raw_GetDecodedContentStream(&_result);
  148. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  149. return _StreamPtr(_result, false);
  150. }
  151. inline _StreamPtr IBodyPart::GetStream ( ) {
  152. struct _Stream * _result;
  153. HRESULT _hr = raw_GetStream(&_result);
  154. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  155. return _StreamPtr(_result, false);
  156. }
  157. inline _bstr_t IBodyPart::GetFieldParameter ( _bstr_t FieldName, _bstr_t Parameter ) {
  158. BSTR _result;
  159. HRESULT _hr = raw_GetFieldParameter(FieldName, Parameter, &_result);
  160. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  161. return _bstr_t(_result, false);
  162. }
  163. inline IDispatchPtr IBodyPart::GetInterface ( _bstr_t Interface ) {
  164. IDispatch * _result;
  165. HRESULT _hr = raw_GetInterface(Interface, &_result);
  166. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  167. return IDispatchPtr(_result, false);
  168. }
  169. //
  170. // interface IDataSource wrapper method implementations
  171. //
  172. inline _bstr_t IDataSource::GetSourceClass ( ) {
  173. BSTR _result;
  174. HRESULT _hr = get_SourceClass(&_result);
  175. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  176. return _bstr_t(_result, false);
  177. }
  178. inline IUnknownPtr IDataSource::GetSource ( ) {
  179. IUnknown * _result;
  180. HRESULT _hr = get_Source(&_result);
  181. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  182. return IUnknownPtr(_result, false);
  183. }
  184. inline VARIANT_BOOL IDataSource::GetIsDirty ( ) {
  185. VARIANT_BOOL _result;
  186. HRESULT _hr = get_IsDirty(&_result);
  187. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  188. return _result;
  189. }
  190. inline void IDataSource::PutIsDirty ( VARIANT_BOOL pIsDirty ) {
  191. HRESULT _hr = put_IsDirty(pIsDirty);
  192. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  193. }
  194. inline _bstr_t IDataSource::GetSourceURL ( ) {
  195. BSTR _result;
  196. HRESULT _hr = get_SourceURL(&_result);
  197. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  198. return _bstr_t(_result, false);
  199. }
  200. inline _ConnectionPtr IDataSource::GetActiveConnection ( ) {
  201. struct _Connection * _result;
  202. HRESULT _hr = get_ActiveConnection(&_result);
  203. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  204. return _ConnectionPtr(_result, false);
  205. }
  206. inline HRESULT IDataSource::SaveToObject ( IUnknown * Source, _bstr_t InterfaceName ) {
  207. HRESULT _hr = raw_SaveToObject(Source, InterfaceName);
  208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  209. return _hr;
  210. }
  211. inline HRESULT IDataSource::OpenObject ( IUnknown * Source, _bstr_t InterfaceName ) {
  212. HRESULT _hr = raw_OpenObject(Source, InterfaceName);
  213. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  214. return _hr;
  215. }
  216. inline HRESULT IDataSource::SaveTo ( _bstr_t SourceURL, IDispatch * ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  217. HRESULT _hr = raw_SaveTo(SourceURL, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  219. return _hr;
  220. }
  221. inline HRESULT IDataSource::Open ( _bstr_t SourceURL, IDispatch * ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  222. HRESULT _hr = raw_Open(SourceURL, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  224. return _hr;
  225. }
  226. inline HRESULT IDataSource::Save ( ) {
  227. HRESULT _hr = raw_Save();
  228. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  229. return _hr;
  230. }
  231. inline HRESULT IDataSource::SaveToContainer ( _bstr_t ContainerURL, IDispatch * ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  232. HRESULT _hr = raw_SaveToContainer(ContainerURL, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  234. return _hr;
  235. }
  236. //
  237. // interface IMessages wrapper method implementations
  238. //
  239. inline IMessagePtr IMessages::GetItem ( long Index ) {
  240. struct IMessage * _result;
  241. HRESULT _hr = get_Item(Index, &_result);
  242. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  243. return IMessagePtr(_result, false);
  244. }
  245. inline long IMessages::GetCount ( ) {
  246. long _result;
  247. HRESULT _hr = get_Count(&_result);
  248. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  249. return _result;
  250. }
  251. inline HRESULT IMessages::Delete ( long Index ) {
  252. HRESULT _hr = raw_Delete(Index);
  253. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  254. return _hr;
  255. }
  256. inline HRESULT IMessages::DeleteAll ( ) {
  257. HRESULT _hr = raw_DeleteAll();
  258. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  259. return _hr;
  260. }
  261. inline IUnknownPtr IMessages::Get_NewEnum ( ) {
  262. IUnknown * _result;
  263. HRESULT _hr = get__NewEnum(&_result);
  264. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  265. return IUnknownPtr(_result, false);
  266. }
  267. inline _bstr_t IMessages::GetFileName ( const _variant_t & var ) {
  268. BSTR _result;
  269. HRESULT _hr = get_FileName(var, &_result);
  270. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  271. return _bstr_t(_result, false);
  272. }
  273. //
  274. // interface IMessage wrapper method implementations
  275. //
  276. inline _bstr_t IMessage::GetBCC ( ) {
  277. BSTR _result;
  278. HRESULT _hr = get_BCC(&_result);
  279. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  280. return _bstr_t(_result, false);
  281. }
  282. inline void IMessage::PutBCC ( _bstr_t pBCC ) {
  283. HRESULT _hr = put_BCC(pBCC);
  284. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  285. }
  286. inline _bstr_t IMessage::GetCC ( ) {
  287. BSTR _result;
  288. HRESULT _hr = get_CC(&_result);
  289. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  290. return _bstr_t(_result, false);
  291. }
  292. inline void IMessage::PutCC ( _bstr_t pCC ) {
  293. HRESULT _hr = put_CC(pCC);
  294. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  295. }
  296. inline _bstr_t IMessage::GetFollowUpTo ( ) {
  297. BSTR _result;
  298. HRESULT _hr = get_FollowUpTo(&_result);
  299. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  300. return _bstr_t(_result, false);
  301. }
  302. inline void IMessage::PutFollowUpTo ( _bstr_t pFollowUpTo ) {
  303. HRESULT _hr = put_FollowUpTo(pFollowUpTo);
  304. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  305. }
  306. inline _bstr_t IMessage::GetFrom ( ) {
  307. BSTR _result;
  308. HRESULT _hr = get_From(&_result);
  309. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  310. return _bstr_t(_result, false);
  311. }
  312. inline void IMessage::PutFrom ( _bstr_t pFrom ) {
  313. HRESULT _hr = put_From(pFrom);
  314. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  315. }
  316. inline _bstr_t IMessage::GetKeywords ( ) {
  317. BSTR _result;
  318. HRESULT _hr = get_Keywords(&_result);
  319. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  320. return _bstr_t(_result, false);
  321. }
  322. inline void IMessage::PutKeywords ( _bstr_t pKeywords ) {
  323. HRESULT _hr = put_Keywords(pKeywords);
  324. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  325. }
  326. inline VARIANT_BOOL IMessage::GetMimeFormatted ( ) {
  327. VARIANT_BOOL _result;
  328. HRESULT _hr = get_MimeFormatted(&_result);
  329. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  330. return _result;
  331. }
  332. inline void IMessage::PutMimeFormatted ( VARIANT_BOOL pMimeFormatted ) {
  333. HRESULT _hr = put_MimeFormatted(pMimeFormatted);
  334. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  335. }
  336. inline _bstr_t IMessage::GetNewsgroups ( ) {
  337. BSTR _result;
  338. HRESULT _hr = get_Newsgroups(&_result);
  339. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  340. return _bstr_t(_result, false);
  341. }
  342. inline void IMessage::PutNewsgroups ( _bstr_t pNewsgroups ) {
  343. HRESULT _hr = put_Newsgroups(pNewsgroups);
  344. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  345. }
  346. inline _bstr_t IMessage::GetOrganization ( ) {
  347. BSTR _result;
  348. HRESULT _hr = get_Organization(&_result);
  349. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  350. return _bstr_t(_result, false);
  351. }
  352. inline void IMessage::PutOrganization ( _bstr_t pOrganization ) {
  353. HRESULT _hr = put_Organization(pOrganization);
  354. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  355. }
  356. inline DATE IMessage::GetReceivedTime ( ) {
  357. DATE _result;
  358. HRESULT _hr = get_ReceivedTime(&_result);
  359. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  360. return _result;
  361. }
  362. inline _bstr_t IMessage::GetReplyTo ( ) {
  363. BSTR _result;
  364. HRESULT _hr = get_ReplyTo(&_result);
  365. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  366. return _bstr_t(_result, false);
  367. }
  368. inline void IMessage::PutReplyTo ( _bstr_t pReplyTo ) {
  369. HRESULT _hr = put_ReplyTo(pReplyTo);
  370. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  371. }
  372. inline enum CdoDSNOptions IMessage::GetDSNOptions ( ) {
  373. enum CdoDSNOptions _result;
  374. HRESULT _hr = get_DSNOptions(&_result);
  375. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  376. return _result;
  377. }
  378. inline void IMessage::PutDSNOptions ( enum CdoDSNOptions pDSNOptions ) {
  379. HRESULT _hr = put_DSNOptions(pDSNOptions);
  380. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  381. }
  382. inline DATE IMessage::GetSentOn ( ) {
  383. DATE _result;
  384. HRESULT _hr = get_SentOn(&_result);
  385. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  386. return _result;
  387. }
  388. inline _bstr_t IMessage::GetSubject ( ) {
  389. BSTR _result;
  390. HRESULT _hr = get_Subject(&_result);
  391. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  392. return _bstr_t(_result, false);
  393. }
  394. inline void IMessage::PutSubject ( _bstr_t pSubject ) {
  395. HRESULT _hr = put_Subject(pSubject);
  396. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  397. }
  398. inline _bstr_t IMessage::GetTo ( ) {
  399. BSTR _result;
  400. HRESULT _hr = get_To(&_result);
  401. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  402. return _bstr_t(_result, false);
  403. }
  404. inline void IMessage::PutTo ( _bstr_t pTo ) {
  405. HRESULT _hr = put_To(pTo);
  406. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  407. }
  408. inline _bstr_t IMessage::GetTextBody ( ) {
  409. BSTR _result;
  410. HRESULT _hr = get_TextBody(&_result);
  411. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  412. return _bstr_t(_result, false);
  413. }
  414. inline void IMessage::PutTextBody ( _bstr_t pTextBody ) {
  415. HRESULT _hr = put_TextBody(pTextBody);
  416. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  417. }
  418. inline _bstr_t IMessage::GetHTMLBody ( ) {
  419. BSTR _result;
  420. HRESULT _hr = get_HTMLBody(&_result);
  421. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  422. return _bstr_t(_result, false);
  423. }
  424. inline void IMessage::PutHTMLBody ( _bstr_t pHTMLBody ) {
  425. HRESULT _hr = put_HTMLBody(pHTMLBody);
  426. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  427. }
  428. inline IBodyPartsPtr IMessage::GetAttachments ( ) {
  429. struct IBodyParts * _result;
  430. HRESULT _hr = get_Attachments(&_result);
  431. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  432. return IBodyPartsPtr(_result, false);
  433. }
  434. inline _bstr_t IMessage::GetSender ( ) {
  435. BSTR _result;
  436. HRESULT _hr = get_Sender(&_result);
  437. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  438. return _bstr_t(_result, false);
  439. }
  440. inline void IMessage::PutSender ( _bstr_t pSender ) {
  441. HRESULT _hr = put_Sender(pSender);
  442. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  443. }
  444. inline IConfigurationPtr IMessage::GetConfiguration ( ) {
  445. struct IConfiguration * _result;
  446. HRESULT _hr = get_Configuration(&_result);
  447. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  448. return IConfigurationPtr(_result, false);
  449. }
  450. inline void IMessage::PutConfiguration ( struct IConfiguration * pConfiguration ) {
  451. HRESULT _hr = put_Configuration(pConfiguration);
  452. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  453. }
  454. inline void IMessage::PutRefConfiguration ( struct IConfiguration * pConfiguration ) {
  455. HRESULT _hr = putref_Configuration(pConfiguration);
  456. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  457. }
  458. inline VARIANT_BOOL IMessage::GetAutoGenerateTextBody ( ) {
  459. VARIANT_BOOL _result;
  460. HRESULT _hr = get_AutoGenerateTextBody(&_result);
  461. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  462. return _result;
  463. }
  464. inline void IMessage::PutAutoGenerateTextBody ( VARIANT_BOOL pAutoGenerateTextBody ) {
  465. HRESULT _hr = put_AutoGenerateTextBody(pAutoGenerateTextBody);
  466. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  467. }
  468. inline FieldsPtr IMessage::GetEnvelopeFields ( ) {
  469. struct Fields * _result;
  470. HRESULT _hr = get_EnvelopeFields(&_result);
  471. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  472. return FieldsPtr(_result, false);
  473. }
  474. inline IBodyPartPtr IMessage::GetTextBodyPart ( ) {
  475. struct IBodyPart * _result;
  476. HRESULT _hr = get_TextBodyPart(&_result);
  477. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  478. return IBodyPartPtr(_result, false);
  479. }
  480. inline IBodyPartPtr IMessage::GetHTMLBodyPart ( ) {
  481. struct IBodyPart * _result;
  482. HRESULT _hr = get_HTMLBodyPart(&_result);
  483. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  484. return IBodyPartPtr(_result, false);
  485. }
  486. inline IBodyPartPtr IMessage::GetBodyPart ( ) {
  487. struct IBodyPart * _result;
  488. HRESULT _hr = get_BodyPart(&_result);
  489. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  490. return IBodyPartPtr(_result, false);
  491. }
  492. inline IDataSourcePtr IMessage::GetDataSource ( ) {
  493. struct IDataSource * _result;
  494. HRESULT _hr = get_DataSource(&_result);
  495. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  496. return IDataSourcePtr(_result, false);
  497. }
  498. inline FieldsPtr IMessage::GetFields ( ) {
  499. struct Fields * _result;
  500. HRESULT _hr = get_Fields(&_result);
  501. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  502. return FieldsPtr(_result, false);
  503. }
  504. inline VARIANT_BOOL IMessage::GetMDNRequested ( ) {
  505. VARIANT_BOOL _result;
  506. HRESULT _hr = get_MDNRequested(&_result);
  507. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  508. return _result;
  509. }
  510. inline void IMessage::PutMDNRequested ( VARIANT_BOOL pMDNRequested ) {
  511. HRESULT _hr = put_MDNRequested(pMDNRequested);
  512. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  513. }
  514. inline IBodyPartPtr IMessage::AddRelatedBodyPart ( _bstr_t URL, _bstr_t Reference, enum CdoReferenceType ReferenceType, _bstr_t UserName, _bstr_t Password ) {
  515. struct IBodyPart * _result;
  516. HRESULT _hr = raw_AddRelatedBodyPart(URL, Reference, ReferenceType, UserName, Password, &_result);
  517. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  518. return IBodyPartPtr(_result, false);
  519. }
  520. inline IBodyPartPtr IMessage::AddAttachment ( _bstr_t URL, _bstr_t UserName, _bstr_t Password ) {
  521. struct IBodyPart * _result;
  522. HRESULT _hr = raw_AddAttachment(URL, UserName, Password, &_result);
  523. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  524. return IBodyPartPtr(_result, false);
  525. }
  526. inline HRESULT IMessage::CreateMHTMLBody ( _bstr_t URL, enum CdoMHTMLFlags Flags, _bstr_t UserName, _bstr_t Password ) {
  527. HRESULT _hr = raw_CreateMHTMLBody(URL, Flags, UserName, Password);
  528. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  529. return _hr;
  530. }
  531. inline IMessagePtr IMessage::Forward ( ) {
  532. struct IMessage * _result;
  533. HRESULT _hr = raw_Forward(&_result);
  534. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  535. return IMessagePtr(_result, false);
  536. }
  537. inline HRESULT IMessage::Post ( ) {
  538. HRESULT _hr = raw_Post();
  539. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  540. return _hr;
  541. }
  542. inline IMessagePtr IMessage::PostReply ( ) {
  543. struct IMessage * _result;
  544. HRESULT _hr = raw_PostReply(&_result);
  545. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  546. return IMessagePtr(_result, false);
  547. }
  548. inline IMessagePtr IMessage::Reply ( ) {
  549. struct IMessage * _result;
  550. HRESULT _hr = raw_Reply(&_result);
  551. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  552. return IMessagePtr(_result, false);
  553. }
  554. inline IMessagePtr IMessage::ReplyAll ( ) {
  555. struct IMessage * _result;
  556. HRESULT _hr = raw_ReplyAll(&_result);
  557. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  558. return IMessagePtr(_result, false);
  559. }
  560. inline HRESULT IMessage::Send ( ) {
  561. HRESULT _hr = raw_Send();
  562. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  563. return _hr;
  564. }
  565. inline _StreamPtr IMessage::GetStream ( ) {
  566. struct _Stream * _result;
  567. HRESULT _hr = raw_GetStream(&_result);
  568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  569. return _StreamPtr(_result, false);
  570. }
  571. inline IDispatchPtr IMessage::GetInterface ( _bstr_t Interface ) {
  572. IDispatch * _result;
  573. HRESULT _hr = raw_GetInterface(Interface, &_result);
  574. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  575. return IDispatchPtr(_result, false);
  576. }
  577. //
  578. // interface IConfiguration wrapper method implementations
  579. //
  580. inline FieldsPtr IConfiguration::GetFields ( ) {
  581. struct Fields * _result;
  582. HRESULT _hr = get_Fields(&_result);
  583. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  584. return FieldsPtr(_result, false);
  585. }
  586. inline HRESULT IConfiguration::Load ( enum CdoConfigSource LoadFrom, _bstr_t URL ) {
  587. HRESULT _hr = raw_Load(LoadFrom, URL);
  588. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  589. return _hr;
  590. }
  591. inline IDispatchPtr IConfiguration::GetInterface ( _bstr_t Interface ) {
  592. IDispatch * _result;
  593. HRESULT _hr = raw_GetInterface(Interface, &_result);
  594. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  595. return IDispatchPtr(_result, false);
  596. }
  597. //
  598. // interface IDropDirectory wrapper method implementations
  599. //
  600. inline IMessagesPtr IDropDirectory::GetMessages ( _bstr_t DirName ) {
  601. struct IMessages * _result;
  602. HRESULT _hr = raw_GetMessages(DirName, &_result);
  603. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  604. return IMessagesPtr(_result, false);
  605. }
  606. //
  607. // interface ISMTPOnArrival wrapper method implementations
  608. //
  609. inline HRESULT ISMTPOnArrival::OnArrival ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  610. HRESULT _hr = raw_OnArrival(Msg, EventStatus);
  611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  612. return _hr;
  613. }
  614. //
  615. // interface INNTPOnPostEarly wrapper method implementations
  616. //
  617. inline HRESULT INNTPOnPostEarly::OnPostEarly ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  618. HRESULT _hr = raw_OnPostEarly(Msg, EventStatus);
  619. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  620. return _hr;
  621. }
  622. //
  623. // interface INNTPOnPost wrapper method implementations
  624. //
  625. inline HRESULT INNTPOnPost::OnPost ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  626. HRESULT _hr = raw_OnPost(Msg, EventStatus);
  627. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  628. return _hr;
  629. }
  630. //
  631. // interface INNTPOnPostFinal wrapper method implementations
  632. //
  633. inline HRESULT INNTPOnPostFinal::OnPostFinal ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  634. HRESULT _hr = raw_OnPostFinal(Msg, EventStatus);
  635. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  636. return _hr;
  637. }