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.

1010 lines
31 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.tlh
  4. //
  5. // C++ source equivalent of Win32 type library cdonts.dll
  6. // compiler-generated file created 05/06/01 at 03:49:51 - DO NOT EDIT!
  7. #pragma once
  8. #pragma pack(push, 8)
  9. #include <comdef.h>
  10. //
  11. // Forward references and typedefs
  12. //
  13. struct __declspec(uuid("0e064add-9d99-11d0-abe5-00aa0064d470"))
  14. /* LIBID */ __CDONTS;
  15. enum CdoRecipientTypes;
  16. enum CdoImportance;
  17. enum CdoAttachmentTypes;
  18. enum CdoFolderTypes;
  19. enum CdoMessageFormats;
  20. enum CdoMailFormats;
  21. enum CdoBodyFormats;
  22. enum CdoEncodingMethod;
  23. typedef enum __MIDL___MIDL_itf_actmsg_0253_0001 CdoObjectClass;
  24. enum __MIDL___MIDL_itf_actmsg_0253_0001;
  25. struct /* coclass */ NewMail;
  26. struct __declspec(uuid("af0eb60d-0775-11d1-a77d-00c04fc2f5b3"))
  27. /* dual interface */ INewMail;
  28. struct /* coclass */ Session;
  29. struct __declspec(uuid("0e064aeb-9d99-11d0-abe5-00aa0064d470"))
  30. /* dual interface */ ISession;
  31. struct __declspec(uuid("0e064a08-9d99-11d0-abe5-00aa0064d470"))
  32. /* dual interface */ AddressEntry;
  33. struct __declspec(uuid("0e064a07-9d99-11d0-abe5-00aa0064d470"))
  34. /* dual interface */ Attachment;
  35. struct __declspec(uuid("0e064a06-9d99-11d0-abe5-00aa0064d470"))
  36. /* dual interface */ Attachments;
  37. struct __declspec(uuid("0e064a01-9d99-11d0-abe5-00aa0064d470"))
  38. /* dual interface */ Folder;
  39. struct __declspec(uuid("0e064a02-9d99-11d0-abe5-00aa0064d470"))
  40. /* dual interface */ Messages;
  41. struct __declspec(uuid("0e064a03-9d99-11d0-abe5-00aa0064d470"))
  42. /* dual interface */ Message;
  43. struct __declspec(uuid("0e064a05-9d99-11d0-abe5-00aa0064d470"))
  44. /* dual interface */ Recipient;
  45. struct __declspec(uuid("0e064a04-9d99-11d0-abe5-00aa0064d470"))
  46. /* dual interface */ Recipients;
  47. //
  48. // Smart pointer typedef declarations
  49. //
  50. _COM_SMARTPTR_TYPEDEF(INewMail, __uuidof(INewMail));
  51. _COM_SMARTPTR_TYPEDEF(ISession, __uuidof(ISession));
  52. _COM_SMARTPTR_TYPEDEF(AddressEntry, __uuidof(AddressEntry));
  53. _COM_SMARTPTR_TYPEDEF(Attachment, __uuidof(Attachment));
  54. _COM_SMARTPTR_TYPEDEF(Attachments, __uuidof(Attachments));
  55. _COM_SMARTPTR_TYPEDEF(Folder, __uuidof(Folder));
  56. _COM_SMARTPTR_TYPEDEF(Messages, __uuidof(Messages));
  57. _COM_SMARTPTR_TYPEDEF(Message, __uuidof(Message));
  58. _COM_SMARTPTR_TYPEDEF(Recipient, __uuidof(Recipient));
  59. _COM_SMARTPTR_TYPEDEF(Recipients, __uuidof(Recipients));
  60. //
  61. // Type library items
  62. //
  63. enum CdoRecipientTypes
  64. {
  65. CdoTo = 1,
  66. CdoCc = 2,
  67. CdoBcc = 3
  68. };
  69. enum CdoImportance
  70. {
  71. CdoLow = 0,
  72. CdoNormal = 1,
  73. CdoHigh = 2
  74. };
  75. enum CdoAttachmentTypes
  76. {
  77. CdoFileData = 1,
  78. CdoEmbeddedMessage = 4
  79. };
  80. enum CdoFolderTypes
  81. {
  82. CdoDefaultFolderInbox = 1,
  83. CdoDefaultFolderOutbox = 2
  84. };
  85. enum CdoMessageFormats
  86. {
  87. CdoMime = 0,
  88. CdoText = 1
  89. };
  90. enum CdoMailFormats
  91. {
  92. CdoMailFormatMime = 0,
  93. CdoMailFormatText = 1
  94. };
  95. enum CdoBodyFormats
  96. {
  97. CdoBodyFormatHTML = 0,
  98. CdoBodyFormatText = 1
  99. };
  100. enum CdoEncodingMethod
  101. {
  102. CdoEncodingUUencode = 0,
  103. CdoEncodingBase64 = 1
  104. };
  105. enum __MIDL___MIDL_itf_actmsg_0253_0001
  106. {
  107. CdoSession = 0,
  108. CdoFolder = 2,
  109. CdoMsg = 3,
  110. CdoRecipient = 4,
  111. CdoAttachment = 5,
  112. CdoAddressEntry = 8,
  113. CdoMessages = 16,
  114. CdoRecipients = 17,
  115. CdoAttachments = 18,
  116. CdoClassTotal = 29
  117. };
  118. struct __declspec(uuid("af0eb60e-0775-11d1-a77d-00c04fc2f5b3"))
  119. NewMail;
  120. // [ default ] interface INewMail
  121. struct __declspec(uuid("af0eb60d-0775-11d1-a77d-00c04fc2f5b3"))
  122. INewMail : IDispatch
  123. {
  124. //
  125. // Property data
  126. //
  127. __declspec(property(put=PutTo))
  128. _bstr_t To;
  129. __declspec(property(put=PutCc))
  130. _bstr_t Cc;
  131. __declspec(property(put=PutBcc))
  132. _bstr_t Bcc;
  133. __declspec(property(put=PutBody))
  134. _variant_t Body;
  135. __declspec(property(put=PutImportance))
  136. long Importance;
  137. __declspec(property(put=PutBodyFormat))
  138. long BodyFormat;
  139. __declspec(property(put=PutMailFormat))
  140. long MailFormat;
  141. __declspec(property(put=PutSubject))
  142. _bstr_t Subject;
  143. __declspec(property(put=PutFrom))
  144. _bstr_t From;
  145. __declspec(property(put=PutContentLocation))
  146. _bstr_t ContentLocation;
  147. __declspec(property(put=PutContentBase))
  148. _bstr_t ContentBase;
  149. __declspec(property(get=GetVersion))
  150. _bstr_t Version;
  151. //
  152. // Wrapper methods for error-handling
  153. //
  154. void PutValue (
  155. _bstr_t bstrHeader,
  156. _bstr_t _arg2 );
  157. void PutTo (
  158. _bstr_t _arg1 );
  159. void PutCc (
  160. _bstr_t _arg1 );
  161. void PutBcc (
  162. _bstr_t _arg1 );
  163. void PutBody (
  164. const _variant_t & _arg1 );
  165. void PutImportance (
  166. long _arg1 );
  167. void PutBodyFormat (
  168. long _arg1 );
  169. void PutMailFormat (
  170. long _arg1 );
  171. void PutSubject (
  172. _bstr_t _arg1 );
  173. void PutFrom (
  174. _bstr_t _arg1 );
  175. HRESULT Send (
  176. const _variant_t & From = vtMissing,
  177. const _variant_t & To = vtMissing,
  178. const _variant_t & Subject = vtMissing,
  179. const _variant_t & Body = vtMissing,
  180. const _variant_t & Importance = vtMissing );
  181. HRESULT AttachFile (
  182. const _variant_t & Source,
  183. const _variant_t & FileName = vtMissing,
  184. const _variant_t & EncodingMethod = vtMissing );
  185. HRESULT AttachURL (
  186. const _variant_t & Source,
  187. const _variant_t & ContentLocation,
  188. const _variant_t & ContentBase = vtMissing,
  189. const _variant_t & EncodingMethod = vtMissing );
  190. HRESULT SetLocaleIDs (
  191. long CodePageID );
  192. void PutContentLocation (
  193. _bstr_t _arg1 );
  194. void PutContentBase (
  195. _bstr_t _arg1 );
  196. _bstr_t GetVersion ( );
  197. //
  198. // Raw methods provided by interface
  199. //
  200. virtual HRESULT __stdcall put_Value (
  201. BSTR bstrHeader,
  202. /*[in]*/ BSTR _arg2 ) = 0;
  203. virtual HRESULT __stdcall put_To (
  204. /*[in]*/ BSTR _arg1 ) = 0;
  205. virtual HRESULT __stdcall put_Cc (
  206. /*[in]*/ BSTR _arg1 ) = 0;
  207. virtual HRESULT __stdcall put_Bcc (
  208. /*[in]*/ BSTR _arg1 ) = 0;
  209. virtual HRESULT __stdcall put_Body (
  210. /*[in]*/ VARIANT _arg1 ) = 0;
  211. virtual HRESULT __stdcall put_Importance (
  212. /*[in]*/ long _arg1 ) = 0;
  213. virtual HRESULT __stdcall put_BodyFormat (
  214. /*[in]*/ long _arg1 ) = 0;
  215. virtual HRESULT __stdcall put_MailFormat (
  216. /*[in]*/ long _arg1 ) = 0;
  217. virtual HRESULT __stdcall put_Subject (
  218. /*[in]*/ BSTR _arg1 ) = 0;
  219. virtual HRESULT __stdcall put_From (
  220. /*[in]*/ BSTR _arg1 ) = 0;
  221. virtual HRESULT __stdcall raw_Send (
  222. /*[in]*/ VARIANT From = vtMissing,
  223. /*[in]*/ VARIANT To = vtMissing,
  224. /*[in]*/ VARIANT Subject = vtMissing,
  225. /*[in]*/ VARIANT Body = vtMissing,
  226. /*[in]*/ VARIANT Importance = vtMissing ) = 0;
  227. virtual HRESULT __stdcall raw_AttachFile (
  228. /*[in]*/ VARIANT Source,
  229. /*[in]*/ VARIANT FileName = vtMissing,
  230. /*[in]*/ VARIANT EncodingMethod = vtMissing ) = 0;
  231. virtual HRESULT __stdcall raw_AttachURL (
  232. /*[in]*/ VARIANT Source,
  233. /*[in]*/ VARIANT ContentLocation,
  234. /*[in]*/ VARIANT ContentBase = vtMissing,
  235. /*[in]*/ VARIANT EncodingMethod = vtMissing ) = 0;
  236. virtual HRESULT __stdcall raw_SetLocaleIDs (
  237. /*[in]*/ long CodePageID ) = 0;
  238. virtual HRESULT __stdcall put_ContentLocation (
  239. /*[in]*/ BSTR _arg1 ) = 0;
  240. virtual HRESULT __stdcall put_ContentBase (
  241. /*[in]*/ BSTR _arg1 ) = 0;
  242. virtual HRESULT __stdcall get_Version (
  243. /*[out,retval]*/ BSTR * Version ) = 0;
  244. };
  245. struct __declspec(uuid("0e064aec-9d99-11d0-abe5-00aa0064d470"))
  246. Session;
  247. // [ default ] interface ISession
  248. struct __declspec(uuid("0e064aeb-9d99-11d0-abe5-00aa0064d470"))
  249. ISession : IDispatch
  250. {
  251. //
  252. // Property data
  253. //
  254. __declspec(property(get=GetName))
  255. _bstr_t Name;
  256. __declspec(property(get=GetSession))
  257. _variant_t Session;
  258. __declspec(property(get=GetClass))
  259. long Class;
  260. __declspec(property(get=GetVersion))
  261. _bstr_t Version;
  262. __declspec(property(get=GetMessageFormat,put=PutMessageFormat))
  263. long MessageFormat;
  264. __declspec(property(get=GetInbox))
  265. _variant_t Inbox;
  266. __declspec(property(get=GetOutbox))
  267. _variant_t Outbox;
  268. __declspec(property(get=GetApplication))
  269. _variant_t Application;
  270. __declspec(property(get=GetParent))
  271. _variant_t Parent;
  272. //
  273. // Wrapper methods for error-handling
  274. //
  275. _variant_t GetApplication ( );
  276. _variant_t GetParent ( );
  277. _variant_t GetSession ( );
  278. long GetClass ( );
  279. _bstr_t GetVersion ( );
  280. _bstr_t GetName ( );
  281. _variant_t GetInbox ( );
  282. _variant_t GetOutbox ( );
  283. long GetMessageFormat ( );
  284. void PutMessageFormat (
  285. long pMessageFormat );
  286. HRESULT LogonSMTP (
  287. const _variant_t & DisplayName,
  288. const _variant_t & Address );
  289. HRESULT Logoff ( );
  290. _variant_t GetDefaultFolder (
  291. const _variant_t & Type );
  292. _variant_t GetMessageCDOEm (
  293. const _variant_t & MessageID,
  294. const _variant_t & StoreID = vtMissing );
  295. HRESULT SetLocaleIDs (
  296. long CodePageID );
  297. HRESULT SetReserved (
  298. const _variant_t & var1,
  299. const _variant_t & var2 );
  300. //
  301. // Raw methods provided by interface
  302. //
  303. virtual HRESULT __stdcall get_Application (
  304. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  305. virtual HRESULT __stdcall get_Parent (
  306. /*[out,retval]*/ VARIANT * varParent ) = 0;
  307. virtual HRESULT __stdcall get_Session (
  308. /*[out,retval]*/ VARIANT * varSession ) = 0;
  309. virtual HRESULT __stdcall get_Class (
  310. /*[out,retval]*/ long * varClass ) = 0;
  311. virtual HRESULT __stdcall get_Version (
  312. /*[out,retval]*/ BSTR * varVersion ) = 0;
  313. virtual HRESULT __stdcall get_Name (
  314. /*[out,retval]*/ BSTR * varName ) = 0;
  315. virtual HRESULT __stdcall get_Inbox (
  316. /*[out,retval]*/ VARIANT * varInbox ) = 0;
  317. virtual HRESULT __stdcall get_Outbox (
  318. /*[out,retval]*/ VARIANT * varOutbox ) = 0;
  319. virtual HRESULT __stdcall get_MessageFormat (
  320. /*[out,retval]*/ long * pMessageFormat ) = 0;
  321. virtual HRESULT __stdcall put_MessageFormat (
  322. /*[in]*/ long pMessageFormat ) = 0;
  323. virtual HRESULT __stdcall raw_LogonSMTP (
  324. /*[in]*/ VARIANT DisplayName,
  325. /*[in]*/ VARIANT Address ) = 0;
  326. virtual HRESULT __stdcall raw_Logoff ( ) = 0;
  327. virtual HRESULT __stdcall raw_GetDefaultFolder (
  328. /*[in]*/ VARIANT Type,
  329. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  330. virtual HRESULT __stdcall raw_GetMessageCDOEm (
  331. /*[in]*/ VARIANT MessageID,
  332. /*[in]*/ VARIANT StoreID,
  333. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  334. virtual HRESULT __stdcall raw_SetLocaleIDs (
  335. /*[in]*/ long CodePageID ) = 0;
  336. virtual HRESULT __stdcall raw_SetReserved (
  337. /*[in]*/ VARIANT var1,
  338. /*[in]*/ VARIANT var2 ) = 0;
  339. };
  340. struct __declspec(uuid("0e064a08-9d99-11d0-abe5-00aa0064d470"))
  341. AddressEntry : IDispatch
  342. {
  343. //
  344. // Property data
  345. //
  346. __declspec(property(get=GetName))
  347. _bstr_t Name;
  348. __declspec(property(get=GetSession))
  349. _variant_t Session;
  350. __declspec(property(get=GetAddress))
  351. _bstr_t Address;
  352. __declspec(property(get=GetClass))
  353. long Class;
  354. __declspec(property(get=GetType))
  355. _bstr_t Type;
  356. __declspec(property(get=GetApplication))
  357. _variant_t Application;
  358. __declspec(property(get=GetParent))
  359. _variant_t Parent;
  360. //
  361. // Wrapper methods for error-handling
  362. //
  363. _variant_t GetApplication ( );
  364. _variant_t GetParent ( );
  365. _variant_t GetSession ( );
  366. long GetClass ( );
  367. _bstr_t GetName ( );
  368. _bstr_t GetAddress ( );
  369. _bstr_t GetType ( );
  370. //
  371. // Raw methods provided by interface
  372. //
  373. virtual HRESULT __stdcall get_Application (
  374. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  375. virtual HRESULT __stdcall get_Parent (
  376. /*[out,retval]*/ VARIANT * varParent ) = 0;
  377. virtual HRESULT __stdcall get_Session (
  378. /*[out,retval]*/ VARIANT * varSession ) = 0;
  379. virtual HRESULT __stdcall get_Class (
  380. /*[out,retval]*/ long * varClass ) = 0;
  381. virtual HRESULT __stdcall get_Name (
  382. /*[out,retval]*/ BSTR * pbstrName ) = 0;
  383. virtual HRESULT __stdcall get_Address (
  384. /*[out,retval]*/ BSTR * varAddress ) = 0;
  385. virtual HRESULT __stdcall get_Type (
  386. /*[out,retval]*/ BSTR * varType ) = 0;
  387. };
  388. struct __declspec(uuid("0e064a07-9d99-11d0-abe5-00aa0064d470"))
  389. Attachment : IDispatch
  390. {
  391. //
  392. // Property data
  393. //
  394. __declspec(property(get=GetName,put=PutName))
  395. _bstr_t Name;
  396. __declspec(property(get=GetSession))
  397. _variant_t Session;
  398. __declspec(property(get=GetSource,put=PutSource))
  399. _variant_t Source;
  400. __declspec(property(get=GetClass))
  401. long Class;
  402. __declspec(property(get=GetContentLocation))
  403. _variant_t ContentLocation;
  404. __declspec(property(get=GetContentBase))
  405. _variant_t ContentBase;
  406. __declspec(property(get=GetContentID))
  407. _variant_t ContentID;
  408. __declspec(property(get=GetType,put=PutType))
  409. long Type;
  410. __declspec(property(get=GetApplication))
  411. _variant_t Application;
  412. __declspec(property(get=GetParent))
  413. _variant_t Parent;
  414. //
  415. // Wrapper methods for error-handling
  416. //
  417. _variant_t GetApplication ( );
  418. _variant_t GetParent ( );
  419. _variant_t GetSession ( );
  420. long GetClass ( );
  421. _bstr_t GetName ( );
  422. void PutName (
  423. _bstr_t pbstrName );
  424. long GetType ( );
  425. void PutType (
  426. long pType );
  427. _variant_t GetSource ( );
  428. void PutSource (
  429. const _variant_t & varSource );
  430. _variant_t GetContentLocation ( );
  431. _variant_t GetContentBase ( );
  432. _variant_t GetContentID ( );
  433. HRESULT Delete ( );
  434. HRESULT ReadFromFile (
  435. _bstr_t FileName );
  436. HRESULT WriteToFile (
  437. _bstr_t FileName );
  438. //
  439. // Raw methods provided by interface
  440. //
  441. virtual HRESULT __stdcall get_Application (
  442. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  443. virtual HRESULT __stdcall get_Parent (
  444. /*[out,retval]*/ VARIANT * varParent ) = 0;
  445. virtual HRESULT __stdcall get_Session (
  446. /*[out,retval]*/ VARIANT * varSession ) = 0;
  447. virtual HRESULT __stdcall get_Class (
  448. /*[out,retval]*/ long * varClass ) = 0;
  449. virtual HRESULT __stdcall get_Name (
  450. /*[out,retval]*/ BSTR * pbstrName ) = 0;
  451. virtual HRESULT __stdcall put_Name (
  452. /*[in]*/ BSTR pbstrName ) = 0;
  453. virtual HRESULT __stdcall get_Type (
  454. /*[out,retval]*/ long * pType ) = 0;
  455. virtual HRESULT __stdcall put_Type (
  456. /*[in]*/ long pType ) = 0;
  457. virtual HRESULT __stdcall get_Source (
  458. /*[out,retval]*/ VARIANT * varSource ) = 0;
  459. virtual HRESULT __stdcall put_Source (
  460. /*[in]*/ VARIANT varSource ) = 0;
  461. virtual HRESULT __stdcall get_ContentLocation (
  462. /*[out,retval]*/ VARIANT * varContentLocation ) = 0;
  463. virtual HRESULT __stdcall get_ContentBase (
  464. /*[out,retval]*/ VARIANT * varContentBase ) = 0;
  465. virtual HRESULT __stdcall get_ContentID (
  466. /*[out,retval]*/ VARIANT * varContentID ) = 0;
  467. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  468. virtual HRESULT __stdcall raw_ReadFromFile (
  469. /*[in]*/ BSTR FileName ) = 0;
  470. virtual HRESULT __stdcall raw_WriteToFile (
  471. /*[in]*/ BSTR FileName ) = 0;
  472. };
  473. struct __declspec(uuid("0e064a06-9d99-11d0-abe5-00aa0064d470"))
  474. Attachments : IDispatch
  475. {
  476. //
  477. // Property data
  478. //
  479. __declspec(property(get=GetItem))
  480. _variant_t Item[];
  481. __declspec(property(get=GetSession))
  482. _variant_t Session;
  483. __declspec(property(get=GetClass))
  484. long Class;
  485. __declspec(property(get=GetCount))
  486. long Count;
  487. __declspec(property(get=GetApplication))
  488. _variant_t Application;
  489. __declspec(property(get=GetParent))
  490. _variant_t Parent;
  491. __declspec(property(get=Get_NewEnum))
  492. IUnknownPtr _NewEnum;
  493. //
  494. // Wrapper methods for error-handling
  495. //
  496. _variant_t GetApplication ( );
  497. _variant_t GetParent ( );
  498. _variant_t GetSession ( );
  499. long GetClass ( );
  500. _variant_t GetItem (
  501. VARIANT * var );
  502. long GetCount ( );
  503. IUnknownPtr Get_NewEnum ( );
  504. _variant_t Add (
  505. const _variant_t & Name = vtMissing,
  506. const _variant_t & Type = vtMissing,
  507. const _variant_t & Source = vtMissing,
  508. const _variant_t & ContentLocation = vtMissing,
  509. const _variant_t & ContentBase = vtMissing );
  510. HRESULT Delete ( );
  511. //
  512. // Raw methods provided by interface
  513. //
  514. virtual HRESULT __stdcall get_Application (
  515. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  516. virtual HRESULT __stdcall get_Parent (
  517. /*[out,retval]*/ VARIANT * varParent ) = 0;
  518. virtual HRESULT __stdcall get_Session (
  519. /*[out,retval]*/ VARIANT * varSession ) = 0;
  520. virtual HRESULT __stdcall get_Class (
  521. /*[out,retval]*/ long * varClass ) = 0;
  522. virtual HRESULT __stdcall get_Item (
  523. /*[in]*/ VARIANT * var,
  524. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  525. virtual HRESULT __stdcall get_Count (
  526. /*[out,retval]*/ long * varCount ) = 0;
  527. virtual HRESULT __stdcall get__NewEnum (
  528. /*[out,retval]*/ IUnknown * * ppunkResult ) = 0;
  529. virtual HRESULT __stdcall raw_Add (
  530. /*[in]*/ VARIANT Name,
  531. /*[in]*/ VARIANT Type,
  532. /*[in]*/ VARIANT Source,
  533. /*[in]*/ VARIANT ContentLocation,
  534. /*[in]*/ VARIANT ContentBase,
  535. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  536. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  537. };
  538. struct __declspec(uuid("0e064a01-9d99-11d0-abe5-00aa0064d470"))
  539. Folder : IDispatch
  540. {
  541. //
  542. // Property data
  543. //
  544. __declspec(property(get=GetMessages))
  545. _variant_t Messages;
  546. __declspec(property(get=GetSession))
  547. _variant_t Session;
  548. __declspec(property(get=GetClass))
  549. long Class;
  550. __declspec(property(get=GetApplication))
  551. _variant_t Application;
  552. __declspec(property(get=GetName))
  553. _bstr_t Name;
  554. __declspec(property(get=GetParent))
  555. _variant_t Parent;
  556. //
  557. // Wrapper methods for error-handling
  558. //
  559. _variant_t GetApplication ( );
  560. _variant_t GetParent ( );
  561. _variant_t GetSession ( );
  562. long GetClass ( );
  563. _bstr_t GetName ( );
  564. _variant_t GetMessages ( );
  565. //
  566. // Raw methods provided by interface
  567. //
  568. virtual HRESULT __stdcall get_Application (
  569. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  570. virtual HRESULT __stdcall get_Parent (
  571. /*[out,retval]*/ VARIANT * varParent ) = 0;
  572. virtual HRESULT __stdcall get_Session (
  573. /*[out,retval]*/ VARIANT * varSession ) = 0;
  574. virtual HRESULT __stdcall get_Class (
  575. /*[out,retval]*/ long * varClass ) = 0;
  576. virtual HRESULT __stdcall get_Name (
  577. /*[out,retval]*/ BSTR * varName ) = 0;
  578. virtual HRESULT __stdcall get_Messages (
  579. /*[out,retval]*/ VARIANT * varMessages ) = 0;
  580. };
  581. struct __declspec(uuid("0e064a02-9d99-11d0-abe5-00aa0064d470"))
  582. Messages : IDispatch
  583. {
  584. //
  585. // Property data
  586. //
  587. __declspec(property(get=GetItem))
  588. _variant_t Item[];
  589. __declspec(property(get=GetSession))
  590. _variant_t Session;
  591. __declspec(property(get=GetClass))
  592. long Class;
  593. __declspec(property(get=GetCount))
  594. long Count;
  595. __declspec(property(get=GetApplication))
  596. _variant_t Application;
  597. __declspec(property(get=GetParent))
  598. _variant_t Parent;
  599. __declspec(property(get=Get_NewEnum))
  600. IUnknownPtr _NewEnum;
  601. //
  602. // Wrapper methods for error-handling
  603. //
  604. _variant_t GetApplication ( );
  605. _variant_t GetParent ( );
  606. _variant_t GetSession ( );
  607. long GetClass ( );
  608. long GetCount ( );
  609. _variant_t GetItem (
  610. VARIANT * var );
  611. IUnknownPtr Get_NewEnum ( );
  612. _variant_t Add (
  613. const _variant_t & Subject = vtMissing,
  614. const _variant_t & Text = vtMissing,
  615. const _variant_t & Importance = vtMissing );
  616. HRESULT Delete ( );
  617. _variant_t GetFirst ( );
  618. _variant_t GetNext ( );
  619. _variant_t GetLast ( );
  620. _variant_t GetPrevious ( );
  621. //
  622. // Raw methods provided by interface
  623. //
  624. virtual HRESULT __stdcall get_Application (
  625. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  626. virtual HRESULT __stdcall get_Parent (
  627. /*[out,retval]*/ VARIANT * varParent ) = 0;
  628. virtual HRESULT __stdcall get_Session (
  629. /*[out,retval]*/ VARIANT * varSession ) = 0;
  630. virtual HRESULT __stdcall get_Class (
  631. /*[out,retval]*/ long * varClass ) = 0;
  632. virtual HRESULT __stdcall get_Count (
  633. /*[out,retval]*/ long * varCount ) = 0;
  634. virtual HRESULT __stdcall get_Item (
  635. /*[in]*/ VARIANT * var,
  636. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  637. virtual HRESULT __stdcall get__NewEnum (
  638. /*[out,retval]*/ IUnknown * * ppunkResult ) = 0;
  639. virtual HRESULT __stdcall raw_Add (
  640. /*[in]*/ VARIANT Subject,
  641. /*[in]*/ VARIANT Text,
  642. /*[in]*/ VARIANT Importance,
  643. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  644. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  645. virtual HRESULT __stdcall raw_GetFirst (
  646. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  647. virtual HRESULT __stdcall raw_GetNext (
  648. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  649. virtual HRESULT __stdcall raw_GetLast (
  650. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  651. virtual HRESULT __stdcall raw_GetPrevious (
  652. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  653. };
  654. struct __declspec(uuid("0e064a03-9d99-11d0-abe5-00aa0064d470"))
  655. Message : IDispatch
  656. {
  657. //
  658. // Property data
  659. //
  660. __declspec(property(get=GetSubject,put=PutSubject))
  661. _bstr_t Subject;
  662. __declspec(property(get=GetSender))
  663. _variant_t Sender;
  664. __declspec(property(get=GetSession))
  665. _variant_t Session;
  666. __declspec(property(get=GetSize))
  667. long Size;
  668. __declspec(property(get=GetAttachments))
  669. _variant_t Attachments;
  670. __declspec(property(get=GetClass))
  671. long Class;
  672. __declspec(property(get=GetText,put=PutText))
  673. _variant_t Text;
  674. __declspec(property(get=GetTimeReceived,put=PutTimeReceived))
  675. _variant_t TimeReceived;
  676. __declspec(property(get=GetTimeSent,put=PutTimeSent))
  677. _variant_t TimeSent;
  678. __declspec(property(get=GetHTMLText,put=PutHTMLText))
  679. _variant_t HTMLText;
  680. __declspec(property(put=PutMessageFormat))
  681. long MessageFormat;
  682. __declspec(property(get=GetContentLocation,put=PutContentLocation))
  683. _variant_t ContentLocation;
  684. __declspec(property(get=GetContentBase,put=PutContentBase))
  685. _variant_t ContentBase;
  686. __declspec(property(get=GetContentID,put=PutContentID))
  687. _variant_t ContentID;
  688. __declspec(property(get=GetApplication))
  689. _variant_t Application;
  690. __declspec(property(get=GetParent))
  691. _variant_t Parent;
  692. __declspec(property(get=GetImportance,put=PutImportance))
  693. long Importance;
  694. __declspec(property(get=GetRecipients,put=PutRecipients))
  695. _variant_t Recipients;
  696. //
  697. // Wrapper methods for error-handling
  698. //
  699. _variant_t GetApplication ( );
  700. _variant_t GetParent ( );
  701. _variant_t GetSession ( );
  702. long GetClass ( );
  703. long GetSize ( );
  704. long GetImportance ( );
  705. void PutImportance (
  706. long pImportance );
  707. _bstr_t GetSubject ( );
  708. void PutSubject (
  709. _bstr_t pSubject );
  710. _variant_t GetSender ( );
  711. _variant_t GetTimeSent ( );
  712. void PutTimeSent (
  713. const _variant_t & varTimeSent );
  714. _variant_t GetTimeReceived ( );
  715. void PutTimeReceived (
  716. const _variant_t & varTimeReceived );
  717. _variant_t GetText ( );
  718. void PutText (
  719. const _variant_t & varText );
  720. _variant_t GetHTMLText ( );
  721. void PutHTMLText (
  722. const _variant_t & varHTMLText );
  723. _variant_t GetRecipients ( );
  724. void PutRecipients (
  725. const _variant_t & varRecipients );
  726. _variant_t GetAttachments ( );
  727. void PutMessageFormat (
  728. long _arg1 );
  729. _variant_t GetContentLocation ( );
  730. void PutContentLocation (
  731. const _variant_t & varContentLocation );
  732. _variant_t GetContentBase ( );
  733. void PutContentBase (
  734. const _variant_t & varContentBase );
  735. _variant_t GetContentID ( );
  736. void PutContentID (
  737. const _variant_t & varContentID );
  738. HRESULT Delete ( );
  739. HRESULT Send ( );
  740. //
  741. // Raw methods provided by interface
  742. //
  743. virtual HRESULT __stdcall get_Application (
  744. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  745. virtual HRESULT __stdcall get_Parent (
  746. /*[out,retval]*/ VARIANT * varParent ) = 0;
  747. virtual HRESULT __stdcall get_Session (
  748. /*[out,retval]*/ VARIANT * varSession ) = 0;
  749. virtual HRESULT __stdcall get_Class (
  750. /*[out,retval]*/ long * varClass ) = 0;
  751. virtual HRESULT __stdcall get_Size (
  752. /*[out,retval]*/ long * varSize ) = 0;
  753. virtual HRESULT __stdcall get_Importance (
  754. /*[out,retval]*/ long * pImportance ) = 0;
  755. virtual HRESULT __stdcall put_Importance (
  756. /*[in]*/ long pImportance ) = 0;
  757. virtual HRESULT __stdcall get_Subject (
  758. /*[out,retval]*/ BSTR * pSubject ) = 0;
  759. virtual HRESULT __stdcall put_Subject (
  760. /*[in]*/ BSTR pSubject ) = 0;
  761. virtual HRESULT __stdcall get_Sender (
  762. /*[out,retval]*/ VARIANT * varSender ) = 0;
  763. virtual HRESULT __stdcall get_TimeSent (
  764. /*[out,retval]*/ VARIANT * varTimeSent ) = 0;
  765. virtual HRESULT __stdcall put_TimeSent (
  766. /*[in]*/ VARIANT varTimeSent ) = 0;
  767. virtual HRESULT __stdcall get_TimeReceived (
  768. /*[out,retval]*/ VARIANT * varTimeReceived ) = 0;
  769. virtual HRESULT __stdcall put_TimeReceived (
  770. /*[in]*/ VARIANT varTimeReceived ) = 0;
  771. virtual HRESULT __stdcall get_Text (
  772. /*[out,retval]*/ VARIANT * varText ) = 0;
  773. virtual HRESULT __stdcall put_Text (
  774. /*[in]*/ VARIANT varText ) = 0;
  775. virtual HRESULT __stdcall get_HTMLText (
  776. /*[out,retval]*/ VARIANT * varHTMLText ) = 0;
  777. virtual HRESULT __stdcall put_HTMLText (
  778. /*[in]*/ VARIANT varHTMLText ) = 0;
  779. virtual HRESULT __stdcall get_Recipients (
  780. /*[out,retval]*/ VARIANT * varRecipients ) = 0;
  781. virtual HRESULT __stdcall put_Recipients (
  782. /*[in]*/ VARIANT varRecipients ) = 0;
  783. virtual HRESULT __stdcall get_Attachments (
  784. /*[out,retval]*/ VARIANT * varAttachments ) = 0;
  785. virtual HRESULT __stdcall put_MessageFormat (
  786. /*[in]*/ long _arg1 ) = 0;
  787. virtual HRESULT __stdcall get_ContentLocation (
  788. /*[out,retval]*/ VARIANT * varContentLocation ) = 0;
  789. virtual HRESULT __stdcall put_ContentLocation (
  790. /*[in]*/ VARIANT varContentLocation ) = 0;
  791. virtual HRESULT __stdcall get_ContentBase (
  792. /*[out,retval]*/ VARIANT * varContentBase ) = 0;
  793. virtual HRESULT __stdcall put_ContentBase (
  794. /*[in]*/ VARIANT varContentBase ) = 0;
  795. virtual HRESULT __stdcall get_ContentID (
  796. /*[out,retval]*/ VARIANT * varContentID ) = 0;
  797. virtual HRESULT __stdcall put_ContentID (
  798. /*[in]*/ VARIANT varContentID ) = 0;
  799. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  800. virtual HRESULT __stdcall raw_Send ( ) = 0;
  801. };
  802. struct __declspec(uuid("0e064a05-9d99-11d0-abe5-00aa0064d470"))
  803. Recipient : IDispatch
  804. {
  805. //
  806. // Property data
  807. //
  808. __declspec(property(get=GetName,put=PutName))
  809. _bstr_t Name;
  810. __declspec(property(get=GetSession))
  811. _variant_t Session;
  812. __declspec(property(get=GetAddress,put=PutAddress))
  813. _bstr_t Address;
  814. __declspec(property(get=GetClass))
  815. long Class;
  816. __declspec(property(get=GetType,put=PutType))
  817. long Type;
  818. __declspec(property(get=GetApplication))
  819. _variant_t Application;
  820. __declspec(property(get=GetParent))
  821. _variant_t Parent;
  822. //
  823. // Wrapper methods for error-handling
  824. //
  825. _variant_t GetApplication ( );
  826. _variant_t GetParent ( );
  827. _variant_t GetSession ( );
  828. long GetClass ( );
  829. _bstr_t GetName ( );
  830. void PutName (
  831. _bstr_t pbstrName );
  832. long GetType ( );
  833. void PutType (
  834. long pType );
  835. _bstr_t GetAddress ( );
  836. void PutAddress (
  837. _bstr_t pAddress );
  838. HRESULT Delete ( );
  839. //
  840. // Raw methods provided by interface
  841. //
  842. virtual HRESULT __stdcall get_Application (
  843. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  844. virtual HRESULT __stdcall get_Parent (
  845. /*[out,retval]*/ VARIANT * varParent ) = 0;
  846. virtual HRESULT __stdcall get_Session (
  847. /*[out,retval]*/ VARIANT * varSession ) = 0;
  848. virtual HRESULT __stdcall get_Class (
  849. /*[out,retval]*/ long * varClass ) = 0;
  850. virtual HRESULT __stdcall get_Name (
  851. /*[out,retval]*/ BSTR * pbstrName ) = 0;
  852. virtual HRESULT __stdcall put_Name (
  853. /*[in]*/ BSTR pbstrName ) = 0;
  854. virtual HRESULT __stdcall get_Type (
  855. /*[out,retval]*/ long * pType ) = 0;
  856. virtual HRESULT __stdcall put_Type (
  857. /*[in]*/ long pType ) = 0;
  858. virtual HRESULT __stdcall get_Address (
  859. /*[out,retval]*/ BSTR * pAddress ) = 0;
  860. virtual HRESULT __stdcall put_Address (
  861. /*[in]*/ BSTR pAddress ) = 0;
  862. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  863. };
  864. struct __declspec(uuid("0e064a04-9d99-11d0-abe5-00aa0064d470"))
  865. Recipients : IDispatch
  866. {
  867. //
  868. // Property data
  869. //
  870. __declspec(property(get=GetItem))
  871. _variant_t Item[];
  872. __declspec(property(get=GetSession))
  873. _variant_t Session;
  874. __declspec(property(get=GetClass))
  875. long Class;
  876. __declspec(property(get=GetCount))
  877. long Count;
  878. __declspec(property(get=GetApplication))
  879. _variant_t Application;
  880. __declspec(property(get=GetParent))
  881. _variant_t Parent;
  882. __declspec(property(get=Get_NewEnum))
  883. IUnknownPtr _NewEnum;
  884. //
  885. // Wrapper methods for error-handling
  886. //
  887. _variant_t GetApplication ( );
  888. _variant_t GetParent ( );
  889. _variant_t GetSession ( );
  890. long GetClass ( );
  891. _variant_t GetItem (
  892. VARIANT * var );
  893. long GetCount ( );
  894. IUnknownPtr Get_NewEnum ( );
  895. _variant_t Add (
  896. const _variant_t & Name = vtMissing,
  897. const _variant_t & Address = vtMissing,
  898. const _variant_t & Type = vtMissing );
  899. HRESULT Delete ( );
  900. //
  901. // Raw methods provided by interface
  902. //
  903. virtual HRESULT __stdcall get_Application (
  904. /*[out,retval]*/ VARIANT * varApplication ) = 0;
  905. virtual HRESULT __stdcall get_Parent (
  906. /*[out,retval]*/ VARIANT * varParent ) = 0;
  907. virtual HRESULT __stdcall get_Session (
  908. /*[out,retval]*/ VARIANT * varSession ) = 0;
  909. virtual HRESULT __stdcall get_Class (
  910. /*[out,retval]*/ long * varClass ) = 0;
  911. virtual HRESULT __stdcall get_Item (
  912. /*[in]*/ VARIANT * var,
  913. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  914. virtual HRESULT __stdcall get_Count (
  915. /*[out,retval]*/ long * varCount ) = 0;
  916. virtual HRESULT __stdcall get__NewEnum (
  917. /*[out,retval]*/ IUnknown * * ppunkResult ) = 0;
  918. virtual HRESULT __stdcall raw_Add (
  919. /*[in]*/ VARIANT Name,
  920. /*[in]*/ VARIANT Address,
  921. /*[in]*/ VARIANT Type,
  922. /*[out,retval]*/ VARIANT * pvarResult ) = 0;
  923. virtual HRESULT __stdcall raw_Delete ( ) = 0;
  924. };
  925. //
  926. // Wrapper method implementations
  927. //
  928. #include "cdonts.tli"
  929. #pragma pack(pop)