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.

965 lines
30 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 13.00.9176 (eef4f361).
  2. //
  3. // g:\src\sdktools\debuggers\excepmon\emsvc\obj\i386\cdonts.tli
  4. //
  5. // Wrapper implementations for Win32 type library cdonts.dll
  6. // compiler-generated file created 05/06/01 at 03:49:51 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface INewMail wrapper method implementations
  10. //
  11. inline void INewMail::PutValue ( _bstr_t bstrHeader, _bstr_t _arg2 ) {
  12. HRESULT _hr = put_Value(bstrHeader, _arg2);
  13. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  14. }
  15. inline void INewMail::PutTo ( _bstr_t _arg1 ) {
  16. HRESULT _hr = put_To(_arg1);
  17. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  18. }
  19. inline void INewMail::PutCc ( _bstr_t _arg1 ) {
  20. HRESULT _hr = put_Cc(_arg1);
  21. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  22. }
  23. inline void INewMail::PutBcc ( _bstr_t _arg1 ) {
  24. HRESULT _hr = put_Bcc(_arg1);
  25. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  26. }
  27. inline void INewMail::PutBody ( const _variant_t & _arg1 ) {
  28. HRESULT _hr = put_Body(_arg1);
  29. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  30. }
  31. inline void INewMail::PutImportance ( long _arg1 ) {
  32. HRESULT _hr = put_Importance(_arg1);
  33. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  34. }
  35. inline void INewMail::PutBodyFormat ( long _arg1 ) {
  36. HRESULT _hr = put_BodyFormat(_arg1);
  37. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  38. }
  39. inline void INewMail::PutMailFormat ( long _arg1 ) {
  40. HRESULT _hr = put_MailFormat(_arg1);
  41. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  42. }
  43. inline void INewMail::PutSubject ( _bstr_t _arg1 ) {
  44. HRESULT _hr = put_Subject(_arg1);
  45. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  46. }
  47. inline void INewMail::PutFrom ( _bstr_t _arg1 ) {
  48. HRESULT _hr = put_From(_arg1);
  49. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  50. }
  51. inline HRESULT INewMail::Send ( const _variant_t & From, const _variant_t & To, const _variant_t & Subject, const _variant_t & Body, const _variant_t & Importance ) {
  52. HRESULT _hr = raw_Send(From, To, Subject, Body, Importance);
  53. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  54. return _hr;
  55. }
  56. inline HRESULT INewMail::AttachFile ( const _variant_t & Source, const _variant_t & FileName, const _variant_t & EncodingMethod ) {
  57. HRESULT _hr = raw_AttachFile(Source, FileName, EncodingMethod);
  58. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  59. return _hr;
  60. }
  61. inline HRESULT INewMail::AttachURL ( const _variant_t & Source, const _variant_t & ContentLocation, const _variant_t & ContentBase, const _variant_t & EncodingMethod ) {
  62. HRESULT _hr = raw_AttachURL(Source, ContentLocation, ContentBase, EncodingMethod);
  63. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  64. return _hr;
  65. }
  66. inline HRESULT INewMail::SetLocaleIDs ( long CodePageID ) {
  67. HRESULT _hr = raw_SetLocaleIDs(CodePageID);
  68. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  69. return _hr;
  70. }
  71. inline void INewMail::PutContentLocation ( _bstr_t _arg1 ) {
  72. HRESULT _hr = put_ContentLocation(_arg1);
  73. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  74. }
  75. inline void INewMail::PutContentBase ( _bstr_t _arg1 ) {
  76. HRESULT _hr = put_ContentBase(_arg1);
  77. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  78. }
  79. inline _bstr_t INewMail::GetVersion ( ) {
  80. BSTR _result = 0;
  81. HRESULT _hr = get_Version(&_result);
  82. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  83. return _bstr_t(_result, false);
  84. }
  85. //
  86. // interface ISession wrapper method implementations
  87. //
  88. inline _variant_t ISession::GetApplication ( ) {
  89. VARIANT _result;
  90. VariantInit(&_result);
  91. HRESULT _hr = get_Application(&_result);
  92. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  93. return _variant_t(_result, false);
  94. }
  95. inline _variant_t ISession::GetParent ( ) {
  96. VARIANT _result;
  97. VariantInit(&_result);
  98. HRESULT _hr = get_Parent(&_result);
  99. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  100. return _variant_t(_result, false);
  101. }
  102. inline _variant_t ISession::GetSession ( ) {
  103. VARIANT _result;
  104. VariantInit(&_result);
  105. HRESULT _hr = get_Session(&_result);
  106. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  107. return _variant_t(_result, false);
  108. }
  109. inline long ISession::GetClass ( ) {
  110. long _result = 0;
  111. HRESULT _hr = get_Class(&_result);
  112. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  113. return _result;
  114. }
  115. inline _bstr_t ISession::GetVersion ( ) {
  116. BSTR _result = 0;
  117. HRESULT _hr = get_Version(&_result);
  118. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  119. return _bstr_t(_result, false);
  120. }
  121. inline _bstr_t ISession::GetName ( ) {
  122. BSTR _result = 0;
  123. HRESULT _hr = get_Name(&_result);
  124. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  125. return _bstr_t(_result, false);
  126. }
  127. inline _variant_t ISession::GetInbox ( ) {
  128. VARIANT _result;
  129. VariantInit(&_result);
  130. HRESULT _hr = get_Inbox(&_result);
  131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  132. return _variant_t(_result, false);
  133. }
  134. inline _variant_t ISession::GetOutbox ( ) {
  135. VARIANT _result;
  136. VariantInit(&_result);
  137. HRESULT _hr = get_Outbox(&_result);
  138. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  139. return _variant_t(_result, false);
  140. }
  141. inline long ISession::GetMessageFormat ( ) {
  142. long _result = 0;
  143. HRESULT _hr = get_MessageFormat(&_result);
  144. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  145. return _result;
  146. }
  147. inline void ISession::PutMessageFormat ( long pMessageFormat ) {
  148. HRESULT _hr = put_MessageFormat(pMessageFormat);
  149. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  150. }
  151. inline HRESULT ISession::LogonSMTP ( const _variant_t & DisplayName, const _variant_t & Address ) {
  152. HRESULT _hr = raw_LogonSMTP(DisplayName, Address);
  153. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  154. return _hr;
  155. }
  156. inline HRESULT ISession::Logoff ( ) {
  157. HRESULT _hr = raw_Logoff();
  158. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  159. return _hr;
  160. }
  161. inline _variant_t ISession::GetDefaultFolder ( const _variant_t & Type ) {
  162. VARIANT _result;
  163. VariantInit(&_result);
  164. HRESULT _hr = raw_GetDefaultFolder(Type, &_result);
  165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  166. return _variant_t(_result, false);
  167. }
  168. inline _variant_t ISession::GetMessageCDOEm ( const _variant_t & MessageID, const _variant_t & StoreID ) {
  169. VARIANT _result;
  170. VariantInit(&_result);
  171. HRESULT _hr = raw_GetMessageCDOEm(MessageID, StoreID, &_result);
  172. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  173. return _variant_t(_result, false);
  174. }
  175. inline HRESULT ISession::SetLocaleIDs ( long CodePageID ) {
  176. HRESULT _hr = raw_SetLocaleIDs(CodePageID);
  177. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  178. return _hr;
  179. }
  180. inline HRESULT ISession::SetReserved ( const _variant_t & var1, const _variant_t & var2 ) {
  181. HRESULT _hr = raw_SetReserved(var1, var2);
  182. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  183. return _hr;
  184. }
  185. //
  186. // interface AddressEntry wrapper method implementations
  187. //
  188. inline _variant_t AddressEntry::GetApplication ( ) {
  189. VARIANT _result;
  190. VariantInit(&_result);
  191. HRESULT _hr = get_Application(&_result);
  192. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  193. return _variant_t(_result, false);
  194. }
  195. inline _variant_t AddressEntry::GetParent ( ) {
  196. VARIANT _result;
  197. VariantInit(&_result);
  198. HRESULT _hr = get_Parent(&_result);
  199. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  200. return _variant_t(_result, false);
  201. }
  202. inline _variant_t AddressEntry::GetSession ( ) {
  203. VARIANT _result;
  204. VariantInit(&_result);
  205. HRESULT _hr = get_Session(&_result);
  206. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  207. return _variant_t(_result, false);
  208. }
  209. inline long AddressEntry::GetClass ( ) {
  210. long _result = 0;
  211. HRESULT _hr = get_Class(&_result);
  212. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  213. return _result;
  214. }
  215. inline _bstr_t AddressEntry::GetName ( ) {
  216. BSTR _result = 0;
  217. HRESULT _hr = get_Name(&_result);
  218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  219. return _bstr_t(_result, false);
  220. }
  221. inline _bstr_t AddressEntry::GetAddress ( ) {
  222. BSTR _result = 0;
  223. HRESULT _hr = get_Address(&_result);
  224. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  225. return _bstr_t(_result, false);
  226. }
  227. inline _bstr_t AddressEntry::GetType ( ) {
  228. BSTR _result = 0;
  229. HRESULT _hr = get_Type(&_result);
  230. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  231. return _bstr_t(_result, false);
  232. }
  233. //
  234. // interface Attachment wrapper method implementations
  235. //
  236. inline _variant_t Attachment::GetApplication ( ) {
  237. VARIANT _result;
  238. VariantInit(&_result);
  239. HRESULT _hr = get_Application(&_result);
  240. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  241. return _variant_t(_result, false);
  242. }
  243. inline _variant_t Attachment::GetParent ( ) {
  244. VARIANT _result;
  245. VariantInit(&_result);
  246. HRESULT _hr = get_Parent(&_result);
  247. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  248. return _variant_t(_result, false);
  249. }
  250. inline _variant_t Attachment::GetSession ( ) {
  251. VARIANT _result;
  252. VariantInit(&_result);
  253. HRESULT _hr = get_Session(&_result);
  254. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  255. return _variant_t(_result, false);
  256. }
  257. inline long Attachment::GetClass ( ) {
  258. long _result = 0;
  259. HRESULT _hr = get_Class(&_result);
  260. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  261. return _result;
  262. }
  263. inline _bstr_t Attachment::GetName ( ) {
  264. BSTR _result = 0;
  265. HRESULT _hr = get_Name(&_result);
  266. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  267. return _bstr_t(_result, false);
  268. }
  269. inline void Attachment::PutName ( _bstr_t pbstrName ) {
  270. HRESULT _hr = put_Name(pbstrName);
  271. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  272. }
  273. inline long Attachment::GetType ( ) {
  274. long _result = 0;
  275. HRESULT _hr = get_Type(&_result);
  276. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  277. return _result;
  278. }
  279. inline void Attachment::PutType ( long pType ) {
  280. HRESULT _hr = put_Type(pType);
  281. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  282. }
  283. inline _variant_t Attachment::GetSource ( ) {
  284. VARIANT _result;
  285. VariantInit(&_result);
  286. HRESULT _hr = get_Source(&_result);
  287. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  288. return _variant_t(_result, false);
  289. }
  290. inline void Attachment::PutSource ( const _variant_t & varSource ) {
  291. HRESULT _hr = put_Source(varSource);
  292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  293. }
  294. inline _variant_t Attachment::GetContentLocation ( ) {
  295. VARIANT _result;
  296. VariantInit(&_result);
  297. HRESULT _hr = get_ContentLocation(&_result);
  298. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  299. return _variant_t(_result, false);
  300. }
  301. inline _variant_t Attachment::GetContentBase ( ) {
  302. VARIANT _result;
  303. VariantInit(&_result);
  304. HRESULT _hr = get_ContentBase(&_result);
  305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  306. return _variant_t(_result, false);
  307. }
  308. inline _variant_t Attachment::GetContentID ( ) {
  309. VARIANT _result;
  310. VariantInit(&_result);
  311. HRESULT _hr = get_ContentID(&_result);
  312. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  313. return _variant_t(_result, false);
  314. }
  315. inline HRESULT Attachment::Delete ( ) {
  316. HRESULT _hr = raw_Delete();
  317. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  318. return _hr;
  319. }
  320. inline HRESULT Attachment::ReadFromFile ( _bstr_t FileName ) {
  321. HRESULT _hr = raw_ReadFromFile(FileName);
  322. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  323. return _hr;
  324. }
  325. inline HRESULT Attachment::WriteToFile ( _bstr_t FileName ) {
  326. HRESULT _hr = raw_WriteToFile(FileName);
  327. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  328. return _hr;
  329. }
  330. //
  331. // interface Attachments wrapper method implementations
  332. //
  333. inline _variant_t Attachments::GetApplication ( ) {
  334. VARIANT _result;
  335. VariantInit(&_result);
  336. HRESULT _hr = get_Application(&_result);
  337. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  338. return _variant_t(_result, false);
  339. }
  340. inline _variant_t Attachments::GetParent ( ) {
  341. VARIANT _result;
  342. VariantInit(&_result);
  343. HRESULT _hr = get_Parent(&_result);
  344. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  345. return _variant_t(_result, false);
  346. }
  347. inline _variant_t Attachments::GetSession ( ) {
  348. VARIANT _result;
  349. VariantInit(&_result);
  350. HRESULT _hr = get_Session(&_result);
  351. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  352. return _variant_t(_result, false);
  353. }
  354. inline long Attachments::GetClass ( ) {
  355. long _result = 0;
  356. HRESULT _hr = get_Class(&_result);
  357. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  358. return _result;
  359. }
  360. inline _variant_t Attachments::GetItem ( VARIANT * var ) {
  361. VARIANT _result;
  362. VariantInit(&_result);
  363. HRESULT _hr = get_Item(var, &_result);
  364. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  365. return _variant_t(_result, false);
  366. }
  367. inline long Attachments::GetCount ( ) {
  368. long _result = 0;
  369. HRESULT _hr = get_Count(&_result);
  370. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  371. return _result;
  372. }
  373. inline IUnknownPtr Attachments::Get_NewEnum ( ) {
  374. IUnknown * _result = 0;
  375. HRESULT _hr = get__NewEnum(&_result);
  376. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  377. return IUnknownPtr(_result, false);
  378. }
  379. inline _variant_t Attachments::Add ( const _variant_t & Name, const _variant_t & Type, const _variant_t & Source, const _variant_t & ContentLocation, const _variant_t & ContentBase ) {
  380. VARIANT _result;
  381. VariantInit(&_result);
  382. HRESULT _hr = raw_Add(Name, Type, Source, ContentLocation, ContentBase, &_result);
  383. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  384. return _variant_t(_result, false);
  385. }
  386. inline HRESULT Attachments::Delete ( ) {
  387. HRESULT _hr = raw_Delete();
  388. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  389. return _hr;
  390. }
  391. //
  392. // interface Folder wrapper method implementations
  393. //
  394. inline _variant_t Folder::GetApplication ( ) {
  395. VARIANT _result;
  396. VariantInit(&_result);
  397. HRESULT _hr = get_Application(&_result);
  398. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  399. return _variant_t(_result, false);
  400. }
  401. inline _variant_t Folder::GetParent ( ) {
  402. VARIANT _result;
  403. VariantInit(&_result);
  404. HRESULT _hr = get_Parent(&_result);
  405. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  406. return _variant_t(_result, false);
  407. }
  408. inline _variant_t Folder::GetSession ( ) {
  409. VARIANT _result;
  410. VariantInit(&_result);
  411. HRESULT _hr = get_Session(&_result);
  412. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  413. return _variant_t(_result, false);
  414. }
  415. inline long Folder::GetClass ( ) {
  416. long _result = 0;
  417. HRESULT _hr = get_Class(&_result);
  418. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  419. return _result;
  420. }
  421. inline _bstr_t Folder::GetName ( ) {
  422. BSTR _result = 0;
  423. HRESULT _hr = get_Name(&_result);
  424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  425. return _bstr_t(_result, false);
  426. }
  427. inline _variant_t Folder::GetMessages ( ) {
  428. VARIANT _result;
  429. VariantInit(&_result);
  430. HRESULT _hr = get_Messages(&_result);
  431. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  432. return _variant_t(_result, false);
  433. }
  434. //
  435. // interface Messages wrapper method implementations
  436. //
  437. inline _variant_t Messages::GetApplication ( ) {
  438. VARIANT _result;
  439. VariantInit(&_result);
  440. HRESULT _hr = get_Application(&_result);
  441. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  442. return _variant_t(_result, false);
  443. }
  444. inline _variant_t Messages::GetParent ( ) {
  445. VARIANT _result;
  446. VariantInit(&_result);
  447. HRESULT _hr = get_Parent(&_result);
  448. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  449. return _variant_t(_result, false);
  450. }
  451. inline _variant_t Messages::GetSession ( ) {
  452. VARIANT _result;
  453. VariantInit(&_result);
  454. HRESULT _hr = get_Session(&_result);
  455. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  456. return _variant_t(_result, false);
  457. }
  458. inline long Messages::GetClass ( ) {
  459. long _result = 0;
  460. HRESULT _hr = get_Class(&_result);
  461. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  462. return _result;
  463. }
  464. inline long Messages::GetCount ( ) {
  465. long _result = 0;
  466. HRESULT _hr = get_Count(&_result);
  467. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  468. return _result;
  469. }
  470. inline _variant_t Messages::GetItem ( VARIANT * var ) {
  471. VARIANT _result;
  472. VariantInit(&_result);
  473. HRESULT _hr = get_Item(var, &_result);
  474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  475. return _variant_t(_result, false);
  476. }
  477. inline IUnknownPtr Messages::Get_NewEnum ( ) {
  478. IUnknown * _result = 0;
  479. HRESULT _hr = get__NewEnum(&_result);
  480. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  481. return IUnknownPtr(_result, false);
  482. }
  483. inline _variant_t Messages::Add ( const _variant_t & Subject, const _variant_t & Text, const _variant_t & Importance ) {
  484. VARIANT _result;
  485. VariantInit(&_result);
  486. HRESULT _hr = raw_Add(Subject, Text, Importance, &_result);
  487. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  488. return _variant_t(_result, false);
  489. }
  490. inline HRESULT Messages::Delete ( ) {
  491. HRESULT _hr = raw_Delete();
  492. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  493. return _hr;
  494. }
  495. inline _variant_t Messages::GetFirst ( ) {
  496. VARIANT _result;
  497. VariantInit(&_result);
  498. HRESULT _hr = raw_GetFirst(&_result);
  499. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  500. return _variant_t(_result, false);
  501. }
  502. inline _variant_t Messages::GetNext ( ) {
  503. VARIANT _result;
  504. VariantInit(&_result);
  505. HRESULT _hr = raw_GetNext(&_result);
  506. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  507. return _variant_t(_result, false);
  508. }
  509. inline _variant_t Messages::GetLast ( ) {
  510. VARIANT _result;
  511. VariantInit(&_result);
  512. HRESULT _hr = raw_GetLast(&_result);
  513. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  514. return _variant_t(_result, false);
  515. }
  516. inline _variant_t Messages::GetPrevious ( ) {
  517. VARIANT _result;
  518. VariantInit(&_result);
  519. HRESULT _hr = raw_GetPrevious(&_result);
  520. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  521. return _variant_t(_result, false);
  522. }
  523. //
  524. // interface Message wrapper method implementations
  525. //
  526. inline _variant_t Message::GetApplication ( ) {
  527. VARIANT _result;
  528. VariantInit(&_result);
  529. HRESULT _hr = get_Application(&_result);
  530. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  531. return _variant_t(_result, false);
  532. }
  533. inline _variant_t Message::GetParent ( ) {
  534. VARIANT _result;
  535. VariantInit(&_result);
  536. HRESULT _hr = get_Parent(&_result);
  537. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  538. return _variant_t(_result, false);
  539. }
  540. inline _variant_t Message::GetSession ( ) {
  541. VARIANT _result;
  542. VariantInit(&_result);
  543. HRESULT _hr = get_Session(&_result);
  544. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  545. return _variant_t(_result, false);
  546. }
  547. inline long Message::GetClass ( ) {
  548. long _result = 0;
  549. HRESULT _hr = get_Class(&_result);
  550. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  551. return _result;
  552. }
  553. inline long Message::GetSize ( ) {
  554. long _result = 0;
  555. HRESULT _hr = get_Size(&_result);
  556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  557. return _result;
  558. }
  559. inline long Message::GetImportance ( ) {
  560. long _result = 0;
  561. HRESULT _hr = get_Importance(&_result);
  562. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  563. return _result;
  564. }
  565. inline void Message::PutImportance ( long pImportance ) {
  566. HRESULT _hr = put_Importance(pImportance);
  567. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  568. }
  569. inline _bstr_t Message::GetSubject ( ) {
  570. BSTR _result = 0;
  571. HRESULT _hr = get_Subject(&_result);
  572. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  573. return _bstr_t(_result, false);
  574. }
  575. inline void Message::PutSubject ( _bstr_t pSubject ) {
  576. HRESULT _hr = put_Subject(pSubject);
  577. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  578. }
  579. inline _variant_t Message::GetSender ( ) {
  580. VARIANT _result;
  581. VariantInit(&_result);
  582. HRESULT _hr = get_Sender(&_result);
  583. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  584. return _variant_t(_result, false);
  585. }
  586. inline _variant_t Message::GetTimeSent ( ) {
  587. VARIANT _result;
  588. VariantInit(&_result);
  589. HRESULT _hr = get_TimeSent(&_result);
  590. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  591. return _variant_t(_result, false);
  592. }
  593. inline void Message::PutTimeSent ( const _variant_t & varTimeSent ) {
  594. HRESULT _hr = put_TimeSent(varTimeSent);
  595. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  596. }
  597. inline _variant_t Message::GetTimeReceived ( ) {
  598. VARIANT _result;
  599. VariantInit(&_result);
  600. HRESULT _hr = get_TimeReceived(&_result);
  601. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  602. return _variant_t(_result, false);
  603. }
  604. inline void Message::PutTimeReceived ( const _variant_t & varTimeReceived ) {
  605. HRESULT _hr = put_TimeReceived(varTimeReceived);
  606. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  607. }
  608. inline _variant_t Message::GetText ( ) {
  609. VARIANT _result;
  610. VariantInit(&_result);
  611. HRESULT _hr = get_Text(&_result);
  612. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  613. return _variant_t(_result, false);
  614. }
  615. inline void Message::PutText ( const _variant_t & varText ) {
  616. HRESULT _hr = put_Text(varText);
  617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  618. }
  619. inline _variant_t Message::GetHTMLText ( ) {
  620. VARIANT _result;
  621. VariantInit(&_result);
  622. HRESULT _hr = get_HTMLText(&_result);
  623. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  624. return _variant_t(_result, false);
  625. }
  626. inline void Message::PutHTMLText ( const _variant_t & varHTMLText ) {
  627. HRESULT _hr = put_HTMLText(varHTMLText);
  628. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  629. }
  630. inline _variant_t Message::GetRecipients ( ) {
  631. VARIANT _result;
  632. VariantInit(&_result);
  633. HRESULT _hr = get_Recipients(&_result);
  634. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  635. return _variant_t(_result, false);
  636. }
  637. inline void Message::PutRecipients ( const _variant_t & varRecipients ) {
  638. HRESULT _hr = put_Recipients(varRecipients);
  639. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  640. }
  641. inline _variant_t Message::GetAttachments ( ) {
  642. VARIANT _result;
  643. VariantInit(&_result);
  644. HRESULT _hr = get_Attachments(&_result);
  645. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  646. return _variant_t(_result, false);
  647. }
  648. inline void Message::PutMessageFormat ( long _arg1 ) {
  649. HRESULT _hr = put_MessageFormat(_arg1);
  650. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  651. }
  652. inline _variant_t Message::GetContentLocation ( ) {
  653. VARIANT _result;
  654. VariantInit(&_result);
  655. HRESULT _hr = get_ContentLocation(&_result);
  656. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  657. return _variant_t(_result, false);
  658. }
  659. inline void Message::PutContentLocation ( const _variant_t & varContentLocation ) {
  660. HRESULT _hr = put_ContentLocation(varContentLocation);
  661. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  662. }
  663. inline _variant_t Message::GetContentBase ( ) {
  664. VARIANT _result;
  665. VariantInit(&_result);
  666. HRESULT _hr = get_ContentBase(&_result);
  667. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  668. return _variant_t(_result, false);
  669. }
  670. inline void Message::PutContentBase ( const _variant_t & varContentBase ) {
  671. HRESULT _hr = put_ContentBase(varContentBase);
  672. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  673. }
  674. inline _variant_t Message::GetContentID ( ) {
  675. VARIANT _result;
  676. VariantInit(&_result);
  677. HRESULT _hr = get_ContentID(&_result);
  678. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  679. return _variant_t(_result, false);
  680. }
  681. inline void Message::PutContentID ( const _variant_t & varContentID ) {
  682. HRESULT _hr = put_ContentID(varContentID);
  683. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  684. }
  685. inline HRESULT Message::Delete ( ) {
  686. HRESULT _hr = raw_Delete();
  687. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  688. return _hr;
  689. }
  690. inline HRESULT Message::Send ( ) {
  691. HRESULT _hr = raw_Send();
  692. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  693. return _hr;
  694. }
  695. //
  696. // interface Recipient wrapper method implementations
  697. //
  698. inline _variant_t Recipient::GetApplication ( ) {
  699. VARIANT _result;
  700. VariantInit(&_result);
  701. HRESULT _hr = get_Application(&_result);
  702. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  703. return _variant_t(_result, false);
  704. }
  705. inline _variant_t Recipient::GetParent ( ) {
  706. VARIANT _result;
  707. VariantInit(&_result);
  708. HRESULT _hr = get_Parent(&_result);
  709. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  710. return _variant_t(_result, false);
  711. }
  712. inline _variant_t Recipient::GetSession ( ) {
  713. VARIANT _result;
  714. VariantInit(&_result);
  715. HRESULT _hr = get_Session(&_result);
  716. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  717. return _variant_t(_result, false);
  718. }
  719. inline long Recipient::GetClass ( ) {
  720. long _result = 0;
  721. HRESULT _hr = get_Class(&_result);
  722. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  723. return _result;
  724. }
  725. inline _bstr_t Recipient::GetName ( ) {
  726. BSTR _result = 0;
  727. HRESULT _hr = get_Name(&_result);
  728. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  729. return _bstr_t(_result, false);
  730. }
  731. inline void Recipient::PutName ( _bstr_t pbstrName ) {
  732. HRESULT _hr = put_Name(pbstrName);
  733. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  734. }
  735. inline long Recipient::GetType ( ) {
  736. long _result = 0;
  737. HRESULT _hr = get_Type(&_result);
  738. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  739. return _result;
  740. }
  741. inline void Recipient::PutType ( long pType ) {
  742. HRESULT _hr = put_Type(pType);
  743. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  744. }
  745. inline _bstr_t Recipient::GetAddress ( ) {
  746. BSTR _result = 0;
  747. HRESULT _hr = get_Address(&_result);
  748. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  749. return _bstr_t(_result, false);
  750. }
  751. inline void Recipient::PutAddress ( _bstr_t pAddress ) {
  752. HRESULT _hr = put_Address(pAddress);
  753. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  754. }
  755. inline HRESULT Recipient::Delete ( ) {
  756. HRESULT _hr = raw_Delete();
  757. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  758. return _hr;
  759. }
  760. //
  761. // interface Recipients wrapper method implementations
  762. //
  763. inline _variant_t Recipients::GetApplication ( ) {
  764. VARIANT _result;
  765. VariantInit(&_result);
  766. HRESULT _hr = get_Application(&_result);
  767. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  768. return _variant_t(_result, false);
  769. }
  770. inline _variant_t Recipients::GetParent ( ) {
  771. VARIANT _result;
  772. VariantInit(&_result);
  773. HRESULT _hr = get_Parent(&_result);
  774. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  775. return _variant_t(_result, false);
  776. }
  777. inline _variant_t Recipients::GetSession ( ) {
  778. VARIANT _result;
  779. VariantInit(&_result);
  780. HRESULT _hr = get_Session(&_result);
  781. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  782. return _variant_t(_result, false);
  783. }
  784. inline long Recipients::GetClass ( ) {
  785. long _result = 0;
  786. HRESULT _hr = get_Class(&_result);
  787. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  788. return _result;
  789. }
  790. inline _variant_t Recipients::GetItem ( VARIANT * var ) {
  791. VARIANT _result;
  792. VariantInit(&_result);
  793. HRESULT _hr = get_Item(var, &_result);
  794. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  795. return _variant_t(_result, false);
  796. }
  797. inline long Recipients::GetCount ( ) {
  798. long _result = 0;
  799. HRESULT _hr = get_Count(&_result);
  800. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  801. return _result;
  802. }
  803. inline IUnknownPtr Recipients::Get_NewEnum ( ) {
  804. IUnknown * _result = 0;
  805. HRESULT _hr = get__NewEnum(&_result);
  806. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  807. return IUnknownPtr(_result, false);
  808. }
  809. inline _variant_t Recipients::Add ( const _variant_t & Name, const _variant_t & Address, const _variant_t & Type ) {
  810. VARIANT _result;
  811. VariantInit(&_result);
  812. HRESULT _hr = raw_Add(Name, Address, Type, &_result);
  813. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  814. return _variant_t(_result, false);
  815. }
  816. inline HRESULT Recipients::Delete ( ) {
  817. HRESULT _hr = raw_Delete();
  818. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  819. return _hr;
  820. }