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.

1059 lines
31 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (3bbb61ea).
  2. //
  3. // cdosys.tlh
  4. //
  5. // C++ source equivalent of Win32 type library cdosys.dll
  6. // compiler-generated file created 12/18/01 at 13:49:39 - DO NOT EDIT!
  7. //
  8. // Cross-referenced type libraries:
  9. //
  10. // #import "F:\Program Files\Common Files\System\ado\msado25.tlb"
  11. //
  12. #pragma once
  13. #pragma pack(push, 8)
  14. #include <comdef.h>
  15. //
  16. // Forward references and typedefs
  17. //
  18. struct __declspec(uuid("cd000023-8b95-11d1-82db-00c04fb1625d"))
  19. /* dual interface */ IBodyParts;
  20. struct __declspec(uuid("cd000021-8b95-11d1-82db-00c04fb1625d"))
  21. /* dual interface */ IBodyPart;
  22. struct __declspec(uuid("cd000029-8b95-11d1-82db-00c04fb1625d"))
  23. /* dual interface */ IDataSource;
  24. struct __declspec(uuid("cd000025-8b95-11d1-82db-00c04fb1625d"))
  25. /* dual interface */ IMessages;
  26. struct __declspec(uuid("cd000020-8b95-11d1-82db-00c04fb1625d"))
  27. /* dual interface */ IMessage;
  28. struct __declspec(uuid("cd000022-8b95-11d1-82db-00c04fb1625d"))
  29. /* dual interface */ IConfiguration;
  30. struct /* coclass */ Message;
  31. struct /* coclass */ Configuration;
  32. struct /* coclass */ DropDirectory;
  33. struct __declspec(uuid("cd000024-8b95-11d1-82db-00c04fb1625d"))
  34. /* dual interface */ IDropDirectory;
  35. struct /* coclass */ SMTPConnector;
  36. struct __declspec(uuid("cd000030-8b95-11d1-82db-00c04fb1625d"))
  37. /* dual interface */ ISMTPScriptConnector;
  38. struct __declspec(uuid("cd000026-8b95-11d1-82db-00c04fb1625d"))
  39. /* dual interface */ ISMTPOnArrival;
  40. struct /* coclass */ NNTPEarlyConnector;
  41. struct __declspec(uuid("cd000034-8b95-11d1-82db-00c04fb1625d"))
  42. /* dual interface */ INNTPEarlyScriptConnector;
  43. struct __declspec(uuid("cd000033-8b95-11d1-82db-00c04fb1625d"))
  44. /* dual interface */ INNTPOnPostEarly;
  45. struct /* coclass */ NNTPPostConnector;
  46. struct __declspec(uuid("cd000031-8b95-11d1-82db-00c04fb1625d"))
  47. /* dual interface */ INNTPPostScriptConnector;
  48. struct __declspec(uuid("cd000027-8b95-11d1-82db-00c04fb1625d"))
  49. /* dual interface */ INNTPOnPost;
  50. struct /* coclass */ NNTPFinalConnector;
  51. struct __declspec(uuid("cd000032-8b95-11d1-82db-00c04fb1625d"))
  52. /* dual interface */ INNTPFinalScriptConnector;
  53. struct __declspec(uuid("cd000028-8b95-11d1-82db-00c04fb1625d"))
  54. /* dual interface */ INNTPOnPostFinal;
  55. //
  56. // Smart pointer typedef declarations
  57. //
  58. _COM_SMARTPTR_TYPEDEF(IBodyParts, __uuidof(IBodyParts));
  59. _COM_SMARTPTR_TYPEDEF(IBodyPart, __uuidof(IBodyPart));
  60. _COM_SMARTPTR_TYPEDEF(IDataSource, __uuidof(IDataSource));
  61. _COM_SMARTPTR_TYPEDEF(IMessages, __uuidof(IMessages));
  62. _COM_SMARTPTR_TYPEDEF(IMessage, __uuidof(IMessage));
  63. _COM_SMARTPTR_TYPEDEF(IConfiguration, __uuidof(IConfiguration));
  64. _COM_SMARTPTR_TYPEDEF(IDropDirectory, __uuidof(IDropDirectory));
  65. _COM_SMARTPTR_TYPEDEF(ISMTPScriptConnector, __uuidof(ISMTPScriptConnector));
  66. _COM_SMARTPTR_TYPEDEF(ISMTPOnArrival, __uuidof(ISMTPOnArrival));
  67. _COM_SMARTPTR_TYPEDEF(INNTPEarlyScriptConnector, __uuidof(INNTPEarlyScriptConnector));
  68. _COM_SMARTPTR_TYPEDEF(INNTPOnPostEarly, __uuidof(INNTPOnPostEarly));
  69. _COM_SMARTPTR_TYPEDEF(INNTPPostScriptConnector, __uuidof(INNTPPostScriptConnector));
  70. _COM_SMARTPTR_TYPEDEF(INNTPOnPost, __uuidof(INNTPOnPost));
  71. _COM_SMARTPTR_TYPEDEF(INNTPFinalScriptConnector, __uuidof(INNTPFinalScriptConnector));
  72. _COM_SMARTPTR_TYPEDEF(INNTPOnPostFinal, __uuidof(INNTPOnPostFinal));
  73. //
  74. // Type library items
  75. //
  76. enum CdoConfigSource
  77. {
  78. cdoDefaults = -1,
  79. cdoIIS = 1,
  80. cdoOutlookExpress = 2
  81. };
  82. enum CdoDSNOptions
  83. {
  84. cdoDSNDefault = 0,
  85. cdoDSNNever = 1,
  86. cdoDSNFailure = 2,
  87. cdoDSNSuccess = 4,
  88. cdoDSNDelay = 8,
  89. cdoDSNSuccessFailOrDelay = 14
  90. };
  91. enum CdoEventStatus
  92. {
  93. cdoRunNextSink = 0,
  94. cdoSkipRemainingSinks = 1
  95. };
  96. enum cdoImportanceValues
  97. {
  98. cdoLow = 0,
  99. cdoNormal = 1,
  100. cdoHigh = 2
  101. };
  102. enum CdoMessageStat
  103. {
  104. cdoStatSuccess = 0,
  105. cdoStatAbortDelivery = 2,
  106. cdoStatBadMail = 3
  107. };
  108. enum CdoMHTMLFlags
  109. {
  110. cdoSuppressNone = 0,
  111. cdoSuppressImages = 1,
  112. cdoSuppressBGSounds = 2,
  113. cdoSuppressFrames = 4,
  114. cdoSuppressObjects = 8,
  115. cdoSuppressStyleSheets = 16,
  116. cdoSuppressAll = 31
  117. };
  118. enum CdoNNTPProcessingField
  119. {
  120. cdoPostMessage = 1,
  121. cdoProcessControl = 2,
  122. cdoProcessModerator = 4
  123. };
  124. enum CdoPostUsing
  125. {
  126. cdoPostUsingPickup = 1,
  127. cdoPostUsingPort = 2
  128. };
  129. enum cdoPriorityValues
  130. {
  131. cdoPriorityNonUrgent = -1,
  132. cdoPriorityNormal = 0,
  133. cdoPriorityUrgent = 1
  134. };
  135. enum CdoProtocolsAuthentication
  136. {
  137. cdoAnonymous = 0,
  138. cdoBasic = 1,
  139. cdoNTLM = 2
  140. };
  141. enum CdoReferenceType
  142. {
  143. cdoRefTypeId = 0,
  144. cdoRefTypeLocation = 1
  145. };
  146. enum CdoSendUsing
  147. {
  148. cdoSendUsingPickup = 1,
  149. cdoSendUsingPort = 2
  150. };
  151. enum cdoSensitivityValues
  152. {
  153. cdoSensitivityNone = 0,
  154. cdoPersonal = 1,
  155. cdoPrivate = 2,
  156. cdoCompanyConfidential = 3
  157. };
  158. enum CdoTimeZoneId
  159. {
  160. cdoUTC = 0,
  161. cdoGMT = 1,
  162. cdoSarajevo = 2,
  163. cdoParis = 3,
  164. cdoBerlin = 4,
  165. cdoEasternEurope = 5,
  166. cdoPrague = 6,
  167. cdoAthens = 7,
  168. cdoBrasilia = 8,
  169. cdoAtlanticCanada = 9,
  170. cdoEastern = 10,
  171. cdoCentral = 11,
  172. cdoMountain = 12,
  173. cdoPacific = 13,
  174. cdoAlaska = 14,
  175. cdoHawaii = 15,
  176. cdoMidwayIsland = 16,
  177. cdoWellington = 17,
  178. cdoBrisbane = 18,
  179. cdoAdelaide = 19,
  180. cdoTokyo = 20,
  181. cdoSingapore = 21,
  182. cdoBangkok = 22,
  183. cdoBombay = 23,
  184. cdoAbuDhabi = 24,
  185. cdoTehran = 25,
  186. cdoBaghdad = 26,
  187. cdoIsrael = 27,
  188. cdoNewfoundland = 28,
  189. cdoAzores = 29,
  190. cdoMidAtlantic = 30,
  191. cdoMonrovia = 31,
  192. cdoBuenosAires = 32,
  193. cdoCaracas = 33,
  194. cdoIndiana = 34,
  195. cdoBogota = 35,
  196. cdoSaskatchewan = 36,
  197. cdoMexicoCity = 37,
  198. cdoArizona = 38,
  199. cdoEniwetok = 39,
  200. cdoFiji = 40,
  201. cdoMagadan = 41,
  202. cdoHobart = 42,
  203. cdoGuam = 43,
  204. cdoDarwin = 44,
  205. cdoBeijing = 45,
  206. cdoAlmaty = 46,
  207. cdoIslamabad = 47,
  208. cdoKabul = 48,
  209. cdoCairo = 49,
  210. cdoHarare = 50,
  211. cdoMoscow = 51,
  212. cdoFloating = 52,
  213. cdoCapeVerde = 53,
  214. cdoCaucasus = 54,
  215. cdoCentralAmerica = 55,
  216. cdoEastAfrica = 56,
  217. cdoMelbourne = 57,
  218. cdoEkaterinburg = 58,
  219. cdoHelsinki = 59,
  220. cdoGreenland = 60,
  221. cdoRangoon = 61,
  222. cdoNepal = 62,
  223. cdoIrkutsk = 63,
  224. cdoKrasnoyarsk = 64,
  225. cdoSantiago = 65,
  226. cdoSriLanka = 66,
  227. cdoTonga = 67,
  228. cdoVladivostok = 68,
  229. cdoWestCentralAfrica = 69,
  230. cdoYakutsk = 70,
  231. cdoDhaka = 71,
  232. cdoSeoul = 72,
  233. cdoPerth = 73,
  234. cdoArab = 74,
  235. cdoTaipei = 75,
  236. cdoSydney2000 = 76,
  237. cdoInvalidTimeZone = 77
  238. };
  239. struct __declspec(uuid("cd000023-8b95-11d1-82db-00c04fb1625d"))
  240. IBodyParts : IDispatch
  241. {
  242. //
  243. // Property data
  244. //
  245. __declspec(property(get=GetItem))
  246. IBodyPartPtr Item[];
  247. __declspec(property(get=GetCount))
  248. long Count;
  249. __declspec(property(get=Get_NewEnum))
  250. IUnknownPtr _NewEnum;
  251. //
  252. // Wrapper methods for error-handling
  253. //
  254. long GetCount ( );
  255. IBodyPartPtr GetItem (
  256. long Index );
  257. IUnknownPtr Get_NewEnum ( );
  258. HRESULT Delete (
  259. const _variant_t & varBP );
  260. HRESULT DeleteAll ( );
  261. IBodyPartPtr Add (
  262. long Index );
  263. //
  264. // Raw methods provided by interface
  265. //
  266. virtual HRESULT __stdcall get_Count (
  267. long * varCount ) = 0;
  268. virtual HRESULT __stdcall get_Item (
  269. long Index,
  270. struct IBodyPart * * ppBody ) = 0;
  271. virtual HRESULT __stdcall get__NewEnum (
  272. IUnknown * * retval ) = 0;
  273. virtual HRESULT __stdcall raw_Delete (
  274. VARIANT varBP ) = 0;
  275. virtual HRESULT __stdcall raw_DeleteAll ( ) = 0;
  276. virtual HRESULT __stdcall raw_Add (
  277. long Index,
  278. struct IBodyPart * * ppPart ) = 0;
  279. };
  280. struct __declspec(uuid("cd000021-8b95-11d1-82db-00c04fb1625d"))
  281. IBodyPart : IDispatch
  282. {
  283. //
  284. // Property data
  285. //
  286. __declspec(property(get=GetBodyParts))
  287. IBodyPartsPtr BodyParts;
  288. __declspec(property(get=GetContentTransferEncoding,put=PutContentTransferEncoding))
  289. _bstr_t ContentTransferEncoding;
  290. __declspec(property(get=GetContentMediaType,put=PutContentMediaType))
  291. _bstr_t ContentMediaType;
  292. __declspec(property(get=GetFields))
  293. FieldsPtr Fields;
  294. __declspec(property(get=GetCharset,put=PutCharset))
  295. _bstr_t Charset;
  296. __declspec(property(get=GetFileName))
  297. _bstr_t FileName;
  298. __declspec(property(get=GetDataSource))
  299. IDataSourcePtr DataSource;
  300. __declspec(property(get=GetContentClass,put=PutContentClass))
  301. _bstr_t ContentClass;
  302. __declspec(property(get=GetContentClassName,put=PutContentClassName))
  303. _bstr_t ContentClassName;
  304. __declspec(property(get=GetParent))
  305. IBodyPartPtr Parent;
  306. //
  307. // Wrapper methods for error-handling
  308. //
  309. IBodyPartsPtr GetBodyParts ( );
  310. _bstr_t GetContentTransferEncoding ( );
  311. void PutContentTransferEncoding (
  312. _bstr_t pContentTransferEncoding );
  313. _bstr_t GetContentMediaType ( );
  314. void PutContentMediaType (
  315. _bstr_t pContentMediaType );
  316. FieldsPtr GetFields ( );
  317. _bstr_t GetCharset ( );
  318. void PutCharset (
  319. _bstr_t pCharset );
  320. _bstr_t GetFileName ( );
  321. IDataSourcePtr GetDataSource ( );
  322. _bstr_t GetContentClass ( );
  323. void PutContentClass (
  324. _bstr_t pContentClass );
  325. _bstr_t GetContentClassName ( );
  326. void PutContentClassName (
  327. _bstr_t pContentClassName );
  328. IBodyPartPtr GetParent ( );
  329. IBodyPartPtr AddBodyPart (
  330. long Index );
  331. HRESULT SaveToFile (
  332. _bstr_t FileName );
  333. _StreamPtr GetEncodedContentStream ( );
  334. _StreamPtr GetDecodedContentStream ( );
  335. _StreamPtr GetStream ( );
  336. _bstr_t GetFieldParameter (
  337. _bstr_t FieldName,
  338. _bstr_t Parameter );
  339. IDispatchPtr GetInterface (
  340. _bstr_t Interface );
  341. //
  342. // Raw methods provided by interface
  343. //
  344. virtual HRESULT __stdcall get_BodyParts (
  345. struct IBodyParts * * varBodyParts ) = 0;
  346. virtual HRESULT __stdcall get_ContentTransferEncoding (
  347. BSTR * pContentTransferEncoding ) = 0;
  348. virtual HRESULT __stdcall put_ContentTransferEncoding (
  349. BSTR pContentTransferEncoding ) = 0;
  350. virtual HRESULT __stdcall get_ContentMediaType (
  351. BSTR * pContentMediaType ) = 0;
  352. virtual HRESULT __stdcall put_ContentMediaType (
  353. BSTR pContentMediaType ) = 0;
  354. virtual HRESULT __stdcall get_Fields (
  355. struct Fields * * varFields ) = 0;
  356. virtual HRESULT __stdcall get_Charset (
  357. BSTR * pCharset ) = 0;
  358. virtual HRESULT __stdcall put_Charset (
  359. BSTR pCharset ) = 0;
  360. virtual HRESULT __stdcall get_FileName (
  361. BSTR * varFileName ) = 0;
  362. virtual HRESULT __stdcall get_DataSource (
  363. struct IDataSource * * varDataSource ) = 0;
  364. virtual HRESULT __stdcall get_ContentClass (
  365. BSTR * pContentClass ) = 0;
  366. virtual HRESULT __stdcall put_ContentClass (
  367. BSTR pContentClass ) = 0;
  368. virtual HRESULT __stdcall get_ContentClassName (
  369. BSTR * pContentClassName ) = 0;
  370. virtual HRESULT __stdcall put_ContentClassName (
  371. BSTR pContentClassName ) = 0;
  372. virtual HRESULT __stdcall get_Parent (
  373. struct IBodyPart * * varParent ) = 0;
  374. virtual HRESULT __stdcall raw_AddBodyPart (
  375. long Index,
  376. struct IBodyPart * * ppPart ) = 0;
  377. virtual HRESULT __stdcall raw_SaveToFile (
  378. BSTR FileName ) = 0;
  379. virtual HRESULT __stdcall raw_GetEncodedContentStream (
  380. struct _Stream * * ppStream ) = 0;
  381. virtual HRESULT __stdcall raw_GetDecodedContentStream (
  382. struct _Stream * * ppStream ) = 0;
  383. virtual HRESULT __stdcall raw_GetStream (
  384. struct _Stream * * ppStream ) = 0;
  385. virtual HRESULT __stdcall raw_GetFieldParameter (
  386. BSTR FieldName,
  387. BSTR Parameter,
  388. BSTR * pbstrValue ) = 0;
  389. virtual HRESULT __stdcall raw_GetInterface (
  390. BSTR Interface,
  391. IDispatch * * ppUnknown ) = 0;
  392. };
  393. struct __declspec(uuid("cd000029-8b95-11d1-82db-00c04fb1625d"))
  394. IDataSource : IDispatch
  395. {
  396. //
  397. // Property data
  398. //
  399. __declspec(property(get=GetSourceClass))
  400. _bstr_t SourceClass;
  401. __declspec(property(get=GetSource))
  402. IUnknownPtr Source;
  403. __declspec(property(get=GetIsDirty,put=PutIsDirty))
  404. VARIANT_BOOL IsDirty;
  405. __declspec(property(get=GetSourceURL))
  406. _bstr_t SourceURL;
  407. __declspec(property(get=GetActiveConnection))
  408. _ConnectionPtr ActiveConnection;
  409. //
  410. // Wrapper methods for error-handling
  411. //
  412. _bstr_t GetSourceClass ( );
  413. IUnknownPtr GetSource ( );
  414. VARIANT_BOOL GetIsDirty ( );
  415. void PutIsDirty (
  416. VARIANT_BOOL pIsDirty );
  417. _bstr_t GetSourceURL ( );
  418. _ConnectionPtr GetActiveConnection ( );
  419. HRESULT SaveToObject (
  420. IUnknown * Source,
  421. _bstr_t InterfaceName );
  422. HRESULT OpenObject (
  423. IUnknown * Source,
  424. _bstr_t InterfaceName );
  425. HRESULT SaveTo (
  426. _bstr_t SourceURL,
  427. IDispatch * ActiveConnection,
  428. enum ConnectModeEnum Mode,
  429. enum RecordCreateOptionsEnum CreateOptions,
  430. enum RecordOpenOptionsEnum Options,
  431. _bstr_t UserName,
  432. _bstr_t Password );
  433. HRESULT Open (
  434. _bstr_t SourceURL,
  435. IDispatch * ActiveConnection,
  436. enum ConnectModeEnum Mode,
  437. enum RecordCreateOptionsEnum CreateOptions,
  438. enum RecordOpenOptionsEnum Options,
  439. _bstr_t UserName,
  440. _bstr_t Password );
  441. HRESULT Save ( );
  442. HRESULT SaveToContainer (
  443. _bstr_t ContainerURL,
  444. IDispatch * ActiveConnection,
  445. enum ConnectModeEnum Mode,
  446. enum RecordCreateOptionsEnum CreateOptions,
  447. enum RecordOpenOptionsEnum Options,
  448. _bstr_t UserName,
  449. _bstr_t Password );
  450. //
  451. // Raw methods provided by interface
  452. //
  453. virtual HRESULT __stdcall get_SourceClass (
  454. BSTR * varSourceClass ) = 0;
  455. virtual HRESULT __stdcall get_Source (
  456. IUnknown * * varSource ) = 0;
  457. virtual HRESULT __stdcall get_IsDirty (
  458. VARIANT_BOOL * pIsDirty ) = 0;
  459. virtual HRESULT __stdcall put_IsDirty (
  460. VARIANT_BOOL pIsDirty ) = 0;
  461. virtual HRESULT __stdcall get_SourceURL (
  462. BSTR * varSourceURL ) = 0;
  463. virtual HRESULT __stdcall get_ActiveConnection (
  464. struct _Connection * * varActiveConnection ) = 0;
  465. virtual HRESULT __stdcall raw_SaveToObject (
  466. IUnknown * Source,
  467. BSTR InterfaceName ) = 0;
  468. virtual HRESULT __stdcall raw_OpenObject (
  469. IUnknown * Source,
  470. BSTR InterfaceName ) = 0;
  471. virtual HRESULT __stdcall raw_SaveTo (
  472. BSTR SourceURL,
  473. IDispatch * ActiveConnection,
  474. enum ConnectModeEnum Mode,
  475. enum RecordCreateOptionsEnum CreateOptions,
  476. enum RecordOpenOptionsEnum Options,
  477. BSTR UserName,
  478. BSTR Password ) = 0;
  479. virtual HRESULT __stdcall raw_Open (
  480. BSTR SourceURL,
  481. IDispatch * ActiveConnection,
  482. enum ConnectModeEnum Mode,
  483. enum RecordCreateOptionsEnum CreateOptions,
  484. enum RecordOpenOptionsEnum Options,
  485. BSTR UserName,
  486. BSTR Password ) = 0;
  487. virtual HRESULT __stdcall raw_Save ( ) = 0;
  488. virtual HRESULT __stdcall raw_SaveToContainer (
  489. BSTR ContainerURL,
  490. IDispatch * ActiveConnection,
  491. enum ConnectModeEnum Mode,
  492. enum RecordCreateOptionsEnum CreateOptions,
  493. enum RecordOpenOptionsEnum Options,
  494. BSTR UserName,
  495. BSTR Password ) = 0;
  496. };
  497. struct __declspec(uuid("cd000025-8b95-11d1-82db-00c04fb1625d"))
  498. IMessages : IDispatch
  499. {
  500. //
  501. // Property data
  502. //
  503. __declspec(property(get=GetCount))
  504. long Count;
  505. __declspec(property(get=Get_NewEnum))
  506. IUnknownPtr _NewEnum;
  507. //
  508. // Wrapper methods for error-handling
  509. //
  510. IMessagePtr GetItem (
  511. long Index );
  512. long GetCount ( );
  513. HRESULT Delete (
  514. long Index );
  515. HRESULT DeleteAll ( );
  516. IUnknownPtr Get_NewEnum ( );
  517. _bstr_t GetFileName (
  518. const _variant_t & var );
  519. //
  520. // Raw methods provided by interface
  521. //
  522. virtual HRESULT __stdcall get_Item (
  523. long Index,
  524. struct IMessage * * ppMessage ) = 0;
  525. virtual HRESULT __stdcall get_Count (
  526. long * varCount ) = 0;
  527. virtual HRESULT __stdcall raw_Delete (
  528. long Index ) = 0;
  529. virtual HRESULT __stdcall raw_DeleteAll ( ) = 0;
  530. virtual HRESULT __stdcall get__NewEnum (
  531. IUnknown * * retval ) = 0;
  532. virtual HRESULT __stdcall get_FileName (
  533. VARIANT var,
  534. BSTR * FileName ) = 0;
  535. };
  536. struct __declspec(uuid("cd000020-8b95-11d1-82db-00c04fb1625d"))
  537. IMessage : IDispatch
  538. {
  539. //
  540. // Property data
  541. //
  542. __declspec(property(get=GetBodyPart))
  543. IBodyPartPtr BodyPart;
  544. __declspec(property(get=GetDataSource))
  545. IDataSourcePtr DataSource;
  546. __declspec(property(get=GetFields))
  547. FieldsPtr Fields;
  548. __declspec(property(get=GetMDNRequested,put=PutMDNRequested))
  549. VARIANT_BOOL MDNRequested;
  550. __declspec(property(get=GetBCC,put=PutBCC))
  551. _bstr_t BCC;
  552. __declspec(property(get=GetCC,put=PutCC))
  553. _bstr_t CC;
  554. __declspec(property(get=GetFollowUpTo,put=PutFollowUpTo))
  555. _bstr_t FollowUpTo;
  556. __declspec(property(get=GetFrom,put=PutFrom))
  557. _bstr_t From;
  558. __declspec(property(get=GetKeywords,put=PutKeywords))
  559. _bstr_t Keywords;
  560. __declspec(property(get=GetMimeFormatted,put=PutMimeFormatted))
  561. VARIANT_BOOL MimeFormatted;
  562. __declspec(property(get=GetNewsgroups,put=PutNewsgroups))
  563. _bstr_t Newsgroups;
  564. __declspec(property(get=GetOrganization,put=PutOrganization))
  565. _bstr_t Organization;
  566. __declspec(property(get=GetReceivedTime))
  567. DATE ReceivedTime;
  568. __declspec(property(get=GetReplyTo,put=PutReplyTo))
  569. _bstr_t ReplyTo;
  570. __declspec(property(get=GetDSNOptions,put=PutDSNOptions))
  571. enum CdoDSNOptions DSNOptions;
  572. __declspec(property(get=GetSentOn))
  573. DATE SentOn;
  574. __declspec(property(get=GetSubject,put=PutSubject))
  575. _bstr_t Subject;
  576. __declspec(property(get=GetTo,put=PutTo))
  577. _bstr_t To;
  578. __declspec(property(get=GetTextBody,put=PutTextBody))
  579. _bstr_t TextBody;
  580. __declspec(property(get=GetHTMLBody,put=PutHTMLBody))
  581. _bstr_t HTMLBody;
  582. __declspec(property(get=GetAttachments))
  583. IBodyPartsPtr Attachments;
  584. __declspec(property(get=GetSender,put=PutSender))
  585. _bstr_t Sender;
  586. __declspec(property(get=GetConfiguration,put=PutRefConfiguration))
  587. IConfigurationPtr Configuration;
  588. __declspec(property(get=GetAutoGenerateTextBody,put=PutAutoGenerateTextBody))
  589. VARIANT_BOOL AutoGenerateTextBody;
  590. __declspec(property(get=GetEnvelopeFields))
  591. FieldsPtr EnvelopeFields;
  592. __declspec(property(get=GetTextBodyPart))
  593. IBodyPartPtr TextBodyPart;
  594. __declspec(property(get=GetHTMLBodyPart))
  595. IBodyPartPtr HTMLBodyPart;
  596. //
  597. // Wrapper methods for error-handling
  598. //
  599. _bstr_t GetBCC ( );
  600. void PutBCC (
  601. _bstr_t pBCC );
  602. _bstr_t GetCC ( );
  603. void PutCC (
  604. _bstr_t pCC );
  605. _bstr_t GetFollowUpTo ( );
  606. void PutFollowUpTo (
  607. _bstr_t pFollowUpTo );
  608. _bstr_t GetFrom ( );
  609. void PutFrom (
  610. _bstr_t pFrom );
  611. _bstr_t GetKeywords ( );
  612. void PutKeywords (
  613. _bstr_t pKeywords );
  614. VARIANT_BOOL GetMimeFormatted ( );
  615. void PutMimeFormatted (
  616. VARIANT_BOOL pMimeFormatted );
  617. _bstr_t GetNewsgroups ( );
  618. void PutNewsgroups (
  619. _bstr_t pNewsgroups );
  620. _bstr_t GetOrganization ( );
  621. void PutOrganization (
  622. _bstr_t pOrganization );
  623. DATE GetReceivedTime ( );
  624. _bstr_t GetReplyTo ( );
  625. void PutReplyTo (
  626. _bstr_t pReplyTo );
  627. enum CdoDSNOptions GetDSNOptions ( );
  628. void PutDSNOptions (
  629. enum CdoDSNOptions pDSNOptions );
  630. DATE GetSentOn ( );
  631. _bstr_t GetSubject ( );
  632. void PutSubject (
  633. _bstr_t pSubject );
  634. _bstr_t GetTo ( );
  635. void PutTo (
  636. _bstr_t pTo );
  637. _bstr_t GetTextBody ( );
  638. void PutTextBody (
  639. _bstr_t pTextBody );
  640. _bstr_t GetHTMLBody ( );
  641. void PutHTMLBody (
  642. _bstr_t pHTMLBody );
  643. IBodyPartsPtr GetAttachments ( );
  644. _bstr_t GetSender ( );
  645. void PutSender (
  646. _bstr_t pSender );
  647. IConfigurationPtr GetConfiguration ( );
  648. void PutConfiguration (
  649. struct IConfiguration * pConfiguration );
  650. void PutRefConfiguration (
  651. struct IConfiguration * pConfiguration );
  652. VARIANT_BOOL GetAutoGenerateTextBody ( );
  653. void PutAutoGenerateTextBody (
  654. VARIANT_BOOL pAutoGenerateTextBody );
  655. FieldsPtr GetEnvelopeFields ( );
  656. IBodyPartPtr GetTextBodyPart ( );
  657. IBodyPartPtr GetHTMLBodyPart ( );
  658. IBodyPartPtr GetBodyPart ( );
  659. IDataSourcePtr GetDataSource ( );
  660. FieldsPtr GetFields ( );
  661. VARIANT_BOOL GetMDNRequested ( );
  662. void PutMDNRequested (
  663. VARIANT_BOOL pMDNRequested );
  664. IBodyPartPtr AddRelatedBodyPart (
  665. _bstr_t URL,
  666. _bstr_t Reference,
  667. enum CdoReferenceType ReferenceType,
  668. _bstr_t UserName,
  669. _bstr_t Password );
  670. IBodyPartPtr AddAttachment (
  671. _bstr_t URL,
  672. _bstr_t UserName,
  673. _bstr_t Password );
  674. HRESULT CreateMHTMLBody (
  675. _bstr_t URL,
  676. enum CdoMHTMLFlags Flags,
  677. _bstr_t UserName,
  678. _bstr_t Password );
  679. IMessagePtr Forward ( );
  680. HRESULT Post ( );
  681. IMessagePtr PostReply ( );
  682. IMessagePtr Reply ( );
  683. IMessagePtr ReplyAll ( );
  684. HRESULT Send ( );
  685. _StreamPtr GetStream ( );
  686. IDispatchPtr GetInterface (
  687. _bstr_t Interface );
  688. //
  689. // Raw methods provided by interface
  690. //
  691. virtual HRESULT __stdcall get_BCC (
  692. BSTR * pBCC ) = 0;
  693. virtual HRESULT __stdcall put_BCC (
  694. BSTR pBCC ) = 0;
  695. virtual HRESULT __stdcall get_CC (
  696. BSTR * pCC ) = 0;
  697. virtual HRESULT __stdcall put_CC (
  698. BSTR pCC ) = 0;
  699. virtual HRESULT __stdcall get_FollowUpTo (
  700. BSTR * pFollowUpTo ) = 0;
  701. virtual HRESULT __stdcall put_FollowUpTo (
  702. BSTR pFollowUpTo ) = 0;
  703. virtual HRESULT __stdcall get_From (
  704. BSTR * pFrom ) = 0;
  705. virtual HRESULT __stdcall put_From (
  706. BSTR pFrom ) = 0;
  707. virtual HRESULT __stdcall get_Keywords (
  708. BSTR * pKeywords ) = 0;
  709. virtual HRESULT __stdcall put_Keywords (
  710. BSTR pKeywords ) = 0;
  711. virtual HRESULT __stdcall get_MimeFormatted (
  712. VARIANT_BOOL * pMimeFormatted ) = 0;
  713. virtual HRESULT __stdcall put_MimeFormatted (
  714. VARIANT_BOOL pMimeFormatted ) = 0;
  715. virtual HRESULT __stdcall get_Newsgroups (
  716. BSTR * pNewsgroups ) = 0;
  717. virtual HRESULT __stdcall put_Newsgroups (
  718. BSTR pNewsgroups ) = 0;
  719. virtual HRESULT __stdcall get_Organization (
  720. BSTR * pOrganization ) = 0;
  721. virtual HRESULT __stdcall put_Organization (
  722. BSTR pOrganization ) = 0;
  723. virtual HRESULT __stdcall get_ReceivedTime (
  724. DATE * varReceivedTime ) = 0;
  725. virtual HRESULT __stdcall get_ReplyTo (
  726. BSTR * pReplyTo ) = 0;
  727. virtual HRESULT __stdcall put_ReplyTo (
  728. BSTR pReplyTo ) = 0;
  729. virtual HRESULT __stdcall get_DSNOptions (
  730. enum CdoDSNOptions * pDSNOptions ) = 0;
  731. virtual HRESULT __stdcall put_DSNOptions (
  732. enum CdoDSNOptions pDSNOptions ) = 0;
  733. virtual HRESULT __stdcall get_SentOn (
  734. DATE * varSentOn ) = 0;
  735. virtual HRESULT __stdcall get_Subject (
  736. BSTR * pSubject ) = 0;
  737. virtual HRESULT __stdcall put_Subject (
  738. BSTR pSubject ) = 0;
  739. virtual HRESULT __stdcall get_To (
  740. BSTR * pTo ) = 0;
  741. virtual HRESULT __stdcall put_To (
  742. BSTR pTo ) = 0;
  743. virtual HRESULT __stdcall get_TextBody (
  744. BSTR * pTextBody ) = 0;
  745. virtual HRESULT __stdcall put_TextBody (
  746. BSTR pTextBody ) = 0;
  747. virtual HRESULT __stdcall get_HTMLBody (
  748. BSTR * pHTMLBody ) = 0;
  749. virtual HRESULT __stdcall put_HTMLBody (
  750. BSTR pHTMLBody ) = 0;
  751. virtual HRESULT __stdcall get_Attachments (
  752. struct IBodyParts * * varAttachments ) = 0;
  753. virtual HRESULT __stdcall get_Sender (
  754. BSTR * pSender ) = 0;
  755. virtual HRESULT __stdcall put_Sender (
  756. BSTR pSender ) = 0;
  757. virtual HRESULT __stdcall get_Configuration (
  758. struct IConfiguration * * pConfiguration ) = 0;
  759. virtual HRESULT __stdcall put_Configuration (
  760. struct IConfiguration * pConfiguration ) = 0;
  761. virtual HRESULT __stdcall putref_Configuration (
  762. struct IConfiguration * pConfiguration ) = 0;
  763. virtual HRESULT __stdcall get_AutoGenerateTextBody (
  764. VARIANT_BOOL * pAutoGenerateTextBody ) = 0;
  765. virtual HRESULT __stdcall put_AutoGenerateTextBody (
  766. VARIANT_BOOL pAutoGenerateTextBody ) = 0;
  767. virtual HRESULT __stdcall get_EnvelopeFields (
  768. struct Fields * * varEnvelopeFields ) = 0;
  769. virtual HRESULT __stdcall get_TextBodyPart (
  770. struct IBodyPart * * varTextBodyPart ) = 0;
  771. virtual HRESULT __stdcall get_HTMLBodyPart (
  772. struct IBodyPart * * varHTMLBodyPart ) = 0;
  773. virtual HRESULT __stdcall get_BodyPart (
  774. struct IBodyPart * * varBodyPart ) = 0;
  775. virtual HRESULT __stdcall get_DataSource (
  776. struct IDataSource * * varDataSource ) = 0;
  777. virtual HRESULT __stdcall get_Fields (
  778. struct Fields * * varFields ) = 0;
  779. virtual HRESULT __stdcall get_MDNRequested (
  780. VARIANT_BOOL * pMDNRequested ) = 0;
  781. virtual HRESULT __stdcall put_MDNRequested (
  782. VARIANT_BOOL pMDNRequested ) = 0;
  783. virtual HRESULT __stdcall raw_AddRelatedBodyPart (
  784. BSTR URL,
  785. BSTR Reference,
  786. enum CdoReferenceType ReferenceType,
  787. BSTR UserName,
  788. BSTR Password,
  789. struct IBodyPart * * ppBody ) = 0;
  790. virtual HRESULT __stdcall raw_AddAttachment (
  791. BSTR URL,
  792. BSTR UserName,
  793. BSTR Password,
  794. struct IBodyPart * * ppBody ) = 0;
  795. virtual HRESULT __stdcall raw_CreateMHTMLBody (
  796. BSTR URL,
  797. enum CdoMHTMLFlags Flags,
  798. BSTR UserName,
  799. BSTR Password ) = 0;
  800. virtual HRESULT __stdcall raw_Forward (
  801. struct IMessage * * ppMsg ) = 0;
  802. virtual HRESULT __stdcall raw_Post ( ) = 0;
  803. virtual HRESULT __stdcall raw_PostReply (
  804. struct IMessage * * ppMsg ) = 0;
  805. virtual HRESULT __stdcall raw_Reply (
  806. struct IMessage * * ppMsg ) = 0;
  807. virtual HRESULT __stdcall raw_ReplyAll (
  808. struct IMessage * * ppMsg ) = 0;
  809. virtual HRESULT __stdcall raw_Send ( ) = 0;
  810. virtual HRESULT __stdcall raw_GetStream (
  811. struct _Stream * * ppStream ) = 0;
  812. virtual HRESULT __stdcall raw_GetInterface (
  813. BSTR Interface,
  814. IDispatch * * ppUnknown ) = 0;
  815. };
  816. struct __declspec(uuid("cd000022-8b95-11d1-82db-00c04fb1625d"))
  817. IConfiguration : IDispatch
  818. {
  819. //
  820. // Property data
  821. //
  822. __declspec(property(get=GetFields))
  823. FieldsPtr Fields;
  824. //
  825. // Wrapper methods for error-handling
  826. //
  827. FieldsPtr GetFields ( );
  828. HRESULT Load (
  829. enum CdoConfigSource LoadFrom,
  830. _bstr_t URL );
  831. IDispatchPtr GetInterface (
  832. _bstr_t Interface );
  833. //
  834. // Raw methods provided by interface
  835. //
  836. virtual HRESULT __stdcall get_Fields (
  837. struct Fields * * varFields ) = 0;
  838. virtual HRESULT __stdcall raw_Load (
  839. enum CdoConfigSource LoadFrom,
  840. BSTR URL ) = 0;
  841. virtual HRESULT __stdcall raw_GetInterface (
  842. BSTR Interface,
  843. IDispatch * * ppUnknown ) = 0;
  844. };
  845. struct __declspec(uuid("cd000001-8b95-11d1-82db-00c04fb1625d"))
  846. Message;
  847. // [ default ] interface IMessage
  848. // interface IDataSource
  849. // interface IBodyPart
  850. struct __declspec(uuid("cd000002-8b95-11d1-82db-00c04fb1625d"))
  851. Configuration;
  852. // [ default ] interface IConfiguration
  853. struct __declspec(uuid("cd000004-8b95-11d1-82db-00c04fb1625d"))
  854. DropDirectory;
  855. // [ default ] interface IDropDirectory
  856. struct __declspec(uuid("cd000024-8b95-11d1-82db-00c04fb1625d"))
  857. IDropDirectory : IDispatch
  858. {
  859. //
  860. // Wrapper methods for error-handling
  861. //
  862. IMessagesPtr GetMessages (
  863. _bstr_t DirName );
  864. //
  865. // Raw methods provided by interface
  866. //
  867. virtual HRESULT __stdcall raw_GetMessages (
  868. BSTR DirName,
  869. struct IMessages * * Msgs ) = 0;
  870. };
  871. struct __declspec(uuid("cd000008-8b95-11d1-82db-00c04fb1625d"))
  872. SMTPConnector;
  873. // [ default ] interface ISMTPScriptConnector
  874. // [ default, source ] interface ISMTPOnArrival
  875. struct __declspec(uuid("cd000030-8b95-11d1-82db-00c04fb1625d"))
  876. ISMTPScriptConnector : IDispatch
  877. {};
  878. struct __declspec(uuid("cd000026-8b95-11d1-82db-00c04fb1625d"))
  879. ISMTPOnArrival : IDispatch
  880. {
  881. //
  882. // Wrapper methods for error-handling
  883. //
  884. HRESULT OnArrival (
  885. struct IMessage * Msg,
  886. enum CdoEventStatus * EventStatus );
  887. //
  888. // Raw methods provided by interface
  889. //
  890. virtual HRESULT __stdcall raw_OnArrival (
  891. struct IMessage * Msg,
  892. enum CdoEventStatus * EventStatus ) = 0;
  893. };
  894. struct __declspec(uuid("cd000011-8b95-11d1-82db-00c04fb1625d"))
  895. NNTPEarlyConnector;
  896. // [ default ] interface INNTPEarlyScriptConnector
  897. // [ default, source ] interface INNTPOnPostEarly
  898. struct __declspec(uuid("cd000034-8b95-11d1-82db-00c04fb1625d"))
  899. INNTPEarlyScriptConnector : IDispatch
  900. {};
  901. struct __declspec(uuid("cd000033-8b95-11d1-82db-00c04fb1625d"))
  902. INNTPOnPostEarly : IDispatch
  903. {
  904. //
  905. // Wrapper methods for error-handling
  906. //
  907. HRESULT OnPostEarly (
  908. struct IMessage * Msg,
  909. enum CdoEventStatus * EventStatus );
  910. //
  911. // Raw methods provided by interface
  912. //
  913. virtual HRESULT __stdcall raw_OnPostEarly (
  914. struct IMessage * Msg,
  915. enum CdoEventStatus * EventStatus ) = 0;
  916. };
  917. struct __declspec(uuid("cd000009-8b95-11d1-82db-00c04fb1625d"))
  918. NNTPPostConnector;
  919. // [ default ] interface INNTPPostScriptConnector
  920. // [ default, source ] interface INNTPOnPost
  921. struct __declspec(uuid("cd000031-8b95-11d1-82db-00c04fb1625d"))
  922. INNTPPostScriptConnector : IDispatch
  923. {};
  924. struct __declspec(uuid("cd000027-8b95-11d1-82db-00c04fb1625d"))
  925. INNTPOnPost : IDispatch
  926. {
  927. //
  928. // Wrapper methods for error-handling
  929. //
  930. HRESULT OnPost (
  931. struct IMessage * Msg,
  932. enum CdoEventStatus * EventStatus );
  933. //
  934. // Raw methods provided by interface
  935. //
  936. virtual HRESULT __stdcall raw_OnPost (
  937. struct IMessage * Msg,
  938. enum CdoEventStatus * EventStatus ) = 0;
  939. };
  940. struct __declspec(uuid("cd000010-8b95-11d1-82db-00c04fb1625d"))
  941. NNTPFinalConnector;
  942. // [ default ] interface INNTPFinalScriptConnector
  943. // [ default, source ] interface INNTPOnPostFinal
  944. struct __declspec(uuid("cd000032-8b95-11d1-82db-00c04fb1625d"))
  945. INNTPFinalScriptConnector : IDispatch
  946. {};
  947. struct __declspec(uuid("cd000028-8b95-11d1-82db-00c04fb1625d"))
  948. INNTPOnPostFinal : IDispatch
  949. {
  950. //
  951. // Wrapper methods for error-handling
  952. //
  953. HRESULT OnPostFinal (
  954. struct IMessage * Msg,
  955. enum CdoEventStatus * EventStatus );
  956. //
  957. // Raw methods provided by interface
  958. //
  959. virtual HRESULT __stdcall raw_OnPostFinal (
  960. struct IMessage * Msg,
  961. enum CdoEventStatus * EventStatus ) = 0;
  962. };
  963. //
  964. // Wrapper method implementations
  965. //
  966. #include "cdosys.tli"
  967. #pragma pack(pop)