CDOSys.Idl 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. import "oaidl.idl";
  2. import "ocidl.idl";
  3. import "msado15.idl";
  4. interface IMessage;
  5. interface IMessages;
  6. interface IBodyPart;
  7. interface IConfiguration;
  8. interface IBodyParts;
  9. interface IDataSource;
  10. [helpstring("Used with the IConfiguration.Load method to specify which default configuration values are to be loaded.")]
  11. typedef enum CdoConfigSource
  12. {
  13. [helpstring("Load all applicable default values from both Outlook Express (OE) and Internet Information Services.")]
  14. cdoDefaults = -1,
  15. [helpstring("Load configuration default values from the local Internet Information Service.")]
  16. cdoIIS = 1,
  17. [helpstring("Load configuration values from the default identify of the default Outlook Express account.")]
  18. cdoOutlookExpress = 2,
  19. } CdoConfigSource;
  20. [helpstring("Used to set or examine the IMessage.DSNOptions property, the value of which identifies the condition(s) under which Delivery Status Notifications (DSNs) are to be sent.")]
  21. typedef enum CdoDSNOptions
  22. {
  23. [helpstring("No DSN commands are issued.")]
  24. cdoDSNDefault = 0,
  25. [helpstring("No DSNs are issued.")]
  26. cdoDSNNever = 1,
  27. [helpstring("Return an DSN if delivery fails.")]
  28. cdoDSNFailure = 2,
  29. [helpstring("Return a DSN if delivery succeeds.")]
  30. cdoDSNSuccess = 4,
  31. [helpstring("Return a DSN if delivery is delayed.")]
  32. cdoDSNDelay = 8,
  33. [helpstring("Return a DSN if delivery succeeds, fails, or is delayed.")]
  34. cdoDSNSuccessFailOrDelay = 14,
  35. } CdoDSNOptions;
  36. [helpstring("Passed to SMTP-NNTP transport event sinks through corresponding event methods and used by sinks to indicate to the event source whether or not they have consumed the event.")]
  37. typedef enum CdoEventStatus
  38. {
  39. [helpstring("Proceed to run the next sink.")]
  40. cdoRunNextSink = 0,
  41. [helpstring("Do not notify (skip) any remaining sinks for the event (i.e. this sink has consumed the event).")]
  42. cdoSkipRemainingSinks = 1,
  43. } CdoEventStatus;
  44. typedef enum CdoEventType
  45. {
  46. cdoSMTPOnArrival = 1,
  47. cdoNNTPOnPostEarly = 2,
  48. cdoNNTPOnPost = 3,
  49. cdoNNTPOnPostFinal = 4,
  50. } CdoEventType;
  51. typedef enum cdoImportanceValues
  52. {
  53. cdoLow = 0,
  54. cdoNormal = 1,
  55. cdoHigh = 2,
  56. } cdoImportanceValues;
  57. [helpstring("Used by SMTP transport event sinks to set or examine the http://schemas.microsoft.com/cdo/smtpenvelope/messagestatus property, the value of which indicates the current message status.")]
  58. typedef enum CdoMessageStat
  59. {
  60. [helpstring("Success. Proceed to deliver message.")]
  61. cdoStatSuccess = 0,
  62. [helpstring("Discard message and do not deliver.")]
  63. cdoStatAbortDelivery = 2,
  64. [helpstring("Do not deliver message and place it in the bad mail location.")]
  65. cdoStatBadMail = 3,
  66. } CdoMessageStat;
  67. [helpstring("Used with the IMessage.CreateMHTMLBody method to specify what resource types referenced within the page specified by the URL parameter should not be downloaded.")]
  68. typedef enum CdoMHTMLFlags
  69. {
  70. [helpstring("Download all resources referred to in elements within the resource at the specified URI. (not recursive)")]
  71. cdoSuppressNone = 0,
  72. [helpstring("Do not download resources referred to in IMG elements.")]
  73. cdoSuppressImages = 1,
  74. [helpstring("Do not download resources referred to in BGSOUND elements.")]
  75. cdoSuppressBGSounds = 2,
  76. [helpstring("Do not download resources referred to in FRAME elements.")]
  77. cdoSuppressFrames = 4,
  78. [helpstring("Do not download resources referred to in OBJECT elements.")]
  79. cdoSuppressObjects = 8,
  80. [helpstring("Do not download resources referred to in LINK elements.")]
  81. cdoSuppressStyleSheets = 16,
  82. [helpstring("Do not download any resources referred to from within the page.")]
  83. cdoSuppressAll = 31,
  84. } CdoMHTMLFlags;
  85. [helpstring("Used by NNTP transport event sinks to set or examine the http://schemas.microsoft.com/cdo/nntpenvelope/nntpprocessing property, the value of which indicates what message processing is to occur.")]
  86. typedef enum CdoNNTPProcessingField
  87. {
  88. [helpstring("Post the message.")]
  89. cdoPostMessage = 1,
  90. [helpstring("Send message through process control.")]
  91. cdoProcessControl = 2,
  92. [helpstring("Send message to moderator.")]
  93. cdoProcessModerator = 4,
  94. } CdoNNTPProcessingField;
  95. [helpstring("Used with the http://schemas.microsoft.com/cdo/configuration/postusing property, the value of which specifies how a message is to be posted.")]
  96. typedef enum CdoPostUsing
  97. {
  98. [helpstring(" Post the message using the local NNTP Service pickup directory.")]
  99. cdoPostUsingPickup = 1,
  100. [helpstring(" Post the message using the NNTP protocol over the network.")]
  101. cdoPostUsingPort = 2,
  102. } CdoPostUsing;
  103. typedef enum cdoPriorityValues
  104. {
  105. cdoPriorityNonUrgent = -1,
  106. cdoPriorityNormal = 0,
  107. cdoPriorityUrgent = 1,
  108. } cdoPriorityValues;
  109. [helpstring("Used with the http://schemas.microsoft.com/cdo/configuration/smtpauthenticate and http://schemas.microsoft.com/cdo/configuration/nntpauthenticate properties, the values of which specify the network authentication mechansim to use when sending messages.")]
  110. typedef enum CdoProtocolsAuthentication
  111. {
  112. [helpstring("Perform no authentication (anonymous)")]
  113. cdoAnonymous = 0,
  114. [helpstring("Use the basic (clear text) authentication mechanism.")]
  115. cdoBasic = 1,
  116. [helpstring("Use the NTLM authentication mechanism")]
  117. cdoNTLM = 2,
  118. } CdoProtocolsAuthentication;
  119. [helpstring("Used with the IMessage.AddRelatedBodyPart method to specify how the new body part is to be referenced within the related HTML body part.")]
  120. typedef enum CdoReferenceType
  121. {
  122. [helpstring("The reference paramter contains a value for the Content-ID header. The HTML body refers to the resource using this Content-ID header")]
  123. cdoRefTypeId = 0,
  124. [helpstring("The reference parameter contains a value for the Content-Location MIME header. The HTML body refers to this resource using this message-relative URL.")]
  125. cdoRefTypeLocation = 1,
  126. } CdoReferenceType;
  127. [helpstring(" Used with the http://schemas.microsoft.com/cdo/configuration/sendusing property, the value of which specifies how a message is to be sent.")]
  128. typedef enum CdoSendUsing
  129. {
  130. [helpstring("Send message using the local SMTP service pickup directory.")]
  131. cdoSendUsingPickup = 1,
  132. [helpstring("Send the message using the SMTP protocol over the network.")]
  133. cdoSendUsingPort = 2,
  134. } CdoSendUsing;
  135. typedef enum cdoSensitivityValues
  136. {
  137. cdoSensitivityNone = 0,
  138. cdoPersonal = 1,
  139. cdoPrivate = 2,
  140. cdoCompanyConfidential = 3,
  141. } cdoSensitivityValues;
  142. [helpstring("Used to set or examine the urn:schemas:calendar:timezoneid property, the value of which specifies the local timezone to use when returning Date properties.")]
  143. typedef enum CdoTimeZoneId
  144. {
  145. [helpstring("(UTC) Universal Coordinated Time")]
  146. cdoUTC = 0,
  147. [helpstring("(GMT) Greenwich Mean Time; Dublin, Edinburgh, London")]
  148. cdoGMT = 1,
  149. [helpstring("(GMT+01:00) Lisbon, Warsaw")]
  150. cdoLisbon = 2,
  151. [helpstring("(GMT+01:00) Paris, Madrid")]
  152. cdoParis = 3,
  153. [helpstring("(GMT+01:00) Berlin, Stockholm, Rome, Bern, Brussels, Vienna")]
  154. cdoBerlin = 4,
  155. [helpstring("(GMT+02:00) Eastern Europe")]
  156. cdoEasternEurope = 5,
  157. [helpstring("(GMT+01:00) Prague")]
  158. cdoPrague = 6,
  159. [helpstring("(GMT+02:00) Athens, Helsinki, Istanbul")]
  160. cdoAthens = 7,
  161. [helpstring("(GMT-03:00) Brasilia")]
  162. cdoBrasilia = 8,
  163. [helpstring("(GMT-04:00) Atlantic Time (Canada)")]
  164. cdoAtlanticCanada = 9,
  165. [helpstring("(GMT-05:00) Eastern Time (US & Canada)")]
  166. cdoEastern = 10,
  167. [helpstring("(GMT-06:00) Central Time (US & Canada)")]
  168. cdoCentral = 11,
  169. [helpstring("(GMT-07:00) Mountain Time (US & Canada)")]
  170. cdoMountain = 12,
  171. [helpstring("(GMT-08:00) Pacific Time (US & Canada); Tijuana")]
  172. cdoPacific = 13,
  173. [helpstring("(GMT-09:00) Alaska")]
  174. cdoAlaska = 14,
  175. [helpstring("(GMT-10:00) Hawaii")]
  176. cdoHawaii = 15,
  177. [helpstring("(GMT-11:00) Midway Island, Samoa")]
  178. cdoMidwayIsland = 16,
  179. [helpstring("(GMT+12:00) Wellington, Auckland")]
  180. cdoWellington = 17,
  181. [helpstring("(GMT+10:00) Brisbane, Melbourne, Sydney")]
  182. cdoBrisbane = 18,
  183. [helpstring("(GMT+09:30) Adelaide")]
  184. cdoAdelaide = 19,
  185. [helpstring("(GMT+09:00) Tokyo, Osaka, Sapporo, Seoul, Yakutsk")]
  186. cdoTokyo = 20,
  187. [helpstring("(GMT+08:00) Hong Kong, Perth, Singapore, Taipei")]
  188. cdoHongKong = 21,
  189. [helpstring("(GMT+07:00) Bangkok, Jakarta, Hanoi")]
  190. cdoBangkok = 22,
  191. [helpstring("(GMT+05:30) Bombay, Calcutta, Madras, New Delhi, Colombo")]
  192. cdoBombay = 23,
  193. [helpstring("(GMT+04:00) Abu Dhabi, Muscat, Tbilisi, Kazan, Volgograd")]
  194. cdoAbuDhabi = 24,
  195. [helpstring("(GMT+03:30) Tehran")]
  196. cdoTehran = 25,
  197. [helpstring("(GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh")]
  198. cdoBaghdad = 26,
  199. [helpstring("(GMT+02:00) Israel")]
  200. cdoIsrael = 27,
  201. [helpstring("(GMT-03:30) Newfoundland")]
  202. cdoNewfoundland = 28,
  203. [helpstring("(GMT-01:00) Azores, Cape Verde Is.")]
  204. cdoAzores = 29,
  205. [helpstring("(GMT-02:00) Mid-Atlantic")]
  206. cdoMidAtlantic = 30,
  207. [helpstring("(GMT) Monrovia, Casablanca")]
  208. cdoMonrovia = 31,
  209. [helpstring("(GMT-03:00) Buenos Aires, Georgetown")]
  210. cdoBuenosAires = 32,
  211. [helpstring("(GMT-04:00) Caracas, La Paz")]
  212. cdoCaracas = 33,
  213. [helpstring("(GMT-05:00) Indiana (East)")]
  214. cdoIndiana = 34,
  215. [helpstring("(GMT-05:00) Bogota, Lima")]
  216. cdoBogota = 35,
  217. [helpstring("(GMT-06:00) Saskatchewan")]
  218. cdoSaskatchewan = 36,
  219. [helpstring("(GMT-06:00) Mexico City, Tegucigalpa")]
  220. cdoMexicoCity = 37,
  221. [helpstring("(GMT-07:00) Arizona")]
  222. cdoArizona = 38,
  223. [helpstring("(GMT-12:00) Eniwetok, Kwajalein")]
  224. cdoEniwetok = 39,
  225. [helpstring("(GMT+12:00) Fiji, Kamchatka, Marshall Is.")]
  226. cdoFiji = 40,
  227. [helpstring("(GMT+11:00) Magadan, Solomon Is., New Caledonia")]
  228. cdoMagadan = 41,
  229. [helpstring("(GMT+10:00) Hobart")]
  230. cdoHobart = 42,
  231. [helpstring("(GMT+10:00) Guam, Port Moresby, Vladivostok")]
  232. cdoGuam = 43,
  233. [helpstring("(GMT+09:30) Darwin")]
  234. cdoDarwin = 44,
  235. [helpstring("(GMT+08:00) Beijing, Chongqing, Urumqi")]
  236. cdoBeijing = 45,
  237. [helpstring("(GMT+06:00) Almaty, Dhaka")]
  238. cdoAlmaty = 46,
  239. [helpstring("(GMT+05:00) Islamabad, Karachi, Sverdlovsk, Tashkent")]
  240. cdoIslamabad = 47,
  241. [helpstring("(GMT+04:30) Kabul")]
  242. cdoKabul = 48,
  243. [helpstring("(GMT+02:00) Cairo")]
  244. cdoCairo = 49,
  245. [helpstring("(GMT+02:00) Harare, Pretoria")]
  246. cdoHarare = 50,
  247. [helpstring("(GMT+03:00) Moscow, St. Petersburg")]
  248. cdoMoscow = 51,
  249. cdoInvalidTimeZone = 52,
  250. } CdoTimeZoneId;
  251. [ object, uuid(CD000029-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to extract messages from or embed messages into other CDO message body parts"), helpcontext(0x00000100), pointer_default(unique) ] interface IDataSource : IDispatch
  252. {
  253. [ id( 207 ), propget, helpstring( "Returns the name (type) of the interface originally used to bind the object" ), helpcontext( 0x00000101 ), readonly ] HRESULT SourceClass ([out,retval] BSTR* varSourceClass);
  254. [ id( 208 ), propget, helpstring( "Returns the currently bound object" ), helpcontext( 0x00000102 ), readonly ] HRESULT Source ([out,retval] IUnknown** varSource);
  255. [ id( 209 ), propget, helpstring( "Indicates whether or not the local data has been changed since the last save or bind operation" ), helpcontext(0x00000103) ] HRESULT IsDirty ([out,retval] VARIANT_BOOL* pIsDirty); [ id( 209 ), propput, helpstring( "Indicates whether or not the local data has been changed since the last save or bind operation" ), helpcontext(0x00000103) ] HRESULT IsDirty ([in] VARIANT_BOOL varIsDirty);
  256. [ id( 210 ), propget, helpstring( "Not Implemented. Reserved for future use" ), helpcontext( 0x00000104 ), readonly ] HRESULT SourceURL ([out,retval] BSTR* varSourceURL);
  257. [ id( 211 ), propget, helpstring( "Not Implemented. Reserved for future use" ), helpcontext( 0x00000105 ), readonly ] HRESULT ActiveConnection ([out,retval] _Connection** varActiveConnection);
  258. [ id( 251 ), helpstring ( "Binds to and saves data into the specified object" ), helpcontext( 0x00000106 ) ] HRESULT SaveToObject(
  259. [in] IUnknown* Source,
  260. [in] BSTR InterfaceName);
  261. [ id( 252 ), helpstring ( "Binds to and opens data from the specified object" ), helpcontext( 0x00000108 ) ] HRESULT OpenObject(
  262. [in] IUnknown* Source,
  263. [in] BSTR InterfaceName);
  264. [ id( 253 ), helpstring ( "Not Implemented. Reserved for future use" ), helpcontext( 0x00000109 ) ] HRESULT SaveTo(
  265. [in] BSTR SourceURL,
  266. [in, defaultvalue(0)] IDispatch* ActiveConnection,
  267. [in, optional] ConnectModeEnum Mode,
  268. [in, optional] RecordCreateOptionsEnum CreateOptions,
  269. [in, optional] RecordOpenOptionsEnum Options,
  270. [in, optional] BSTR UserName,
  271. [in, optional] BSTR Password);
  272. [ id( 254 ), helpstring ( "Not implemented. Reserved for future use" ), helpcontext( 0x0000010a ) ] HRESULT Open(
  273. [in] BSTR SourceURL,
  274. [in, defaultvalue(0)] IDispatch* ActiveConnection,
  275. [in, optional] ConnectModeEnum Mode,
  276. [in, optional] RecordCreateOptionsEnum CreateOptions,
  277. [in, optional] RecordOpenOptionsEnum Options,
  278. [in, optional] BSTR UserName,
  279. [in, optional] BSTR Password);
  280. [ id( 255 ), helpstring ( "Saves data into the currently bound object" ), helpcontext( 0x0000010b ) ] HRESULT Save();
  281. [ id( 256 ), helpstring ( "Not Implemented. Reserved for future use" ), helpcontext( 0x00000107 ) ] HRESULT SaveToContainer(
  282. [in] BSTR ContainerURL,
  283. [in, defaultvalue(0)] IDispatch* ActiveConnection,
  284. [in, optional] ConnectModeEnum Mode,
  285. [in, optional] RecordCreateOptionsEnum CreateOptions,
  286. [in, optional] RecordOpenOptionsEnum Options,
  287. [in, optional] BSTR UserName,
  288. [in, optional] BSTR Password);
  289. };
  290. [ object, uuid(CD000020-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to manage a complete message"), helpcontext(0x00000110), pointer_default(unique) ] interface IMessage : IDispatch
  291. {
  292. [ id( 101 ), propget, helpstring( "The intended blind carbon copy (BCC header) recipients" ), helpcontext(0x00000111) ] HRESULT BCC ([out,retval] BSTR* pBCC); [ id( 101 ), propput, helpstring( "The intended blind carbon copy (BCC header) recipients" ), helpcontext(0x00000111) ] HRESULT BCC ([in] BSTR varBCC);
  293. [ id( 103 ), propget, helpstring( "The intended secondary (carbon copy) recipients" ), helpcontext(0x00000112) ] HRESULT CC ([out,retval] BSTR* pCC); [ id( 103 ), propput, helpstring( "The intended secondary (carbon copy) recipients" ), helpcontext(0x00000112) ] HRESULT CC ([in] BSTR varCC);
  294. [ id( 105 ), propget, helpstring( "The recipient to which follow up messages should be sent" ), helpcontext(0x00000113) ] HRESULT FollowUpTo ([out,retval] BSTR* pFollowUpTo); [ id( 105 ), propput, helpstring( "The recipient to which follow up messages should be sent" ), helpcontext(0x00000113) ] HRESULT FollowUpTo ([in] BSTR varFollowUpTo);
  295. [ id( 106 ), propget, helpstring( "The principle recipients from which the message is sent" ), helpcontext(0x00000114) ] HRESULT From ([out,retval] BSTR* pFrom); [ id( 106 ), propput, helpstring( "The principle recipients from which the message is sent" ), helpcontext(0x00000114) ] HRESULT From ([in] BSTR varFrom);
  296. [ id( 107 ), propget, helpstring( "The keywords for the message" ), helpcontext(0x00000115) ] HRESULT Keywords ([out,retval] BSTR* pKeywords); [ id( 107 ), propput, helpstring( "The keywords for the message" ), helpcontext(0x00000115) ] HRESULT Keywords ([in] BSTR varKeywords);
  297. [ id( 110 ), propget, helpstring( "Specifies whether or not the message is to be formatted using MIME (True) or UUEncode (False)" ), helpcontext(0x00000116) ] HRESULT MimeFormatted ([out,retval] VARIANT_BOOL* pMimeFormatted); [ id( 110 ), propput, helpstring( "Specifies whether or not the message is to be formatted using MIME (True) or UUEncode (False)" ), helpcontext(0x00000116) ] HRESULT MimeFormatted ([in] VARIANT_BOOL varMimeFormatted);
  298. [ id( 111 ), propget, helpstring( "The names of newsgroups (NewsGroups header) to which the message is to be posted" ), helpcontext(0x00000117) ] HRESULT Newsgroups ([out,retval] BSTR* pNewsgroups); [ id( 111 ), propput, helpstring( "The names of newsgroups (NewsGroups header) to which the message is to be posted" ), helpcontext(0x00000117) ] HRESULT Newsgroups ([in] BSTR varNewsgroups);
  299. [ id( 112 ), propget, helpstring( "The organization of the sender" ), helpcontext(0x00000118) ] HRESULT Organization ([out,retval] BSTR* pOrganization); [ id( 112 ), propput, helpstring( "The organization of the sender" ), helpcontext(0x00000118) ] HRESULT Organization ([in] BSTR varOrganization);
  300. [ id( 114 ), propget, helpstring( "Returns the time the message was received" ), helpcontext( 0x00000119 ), readonly ] HRESULT ReceivedTime ([out,retval] DATE* varReceivedTime);
  301. [ id( 115 ), propget, helpstring( "The addresses (Reply-To header) to which to reply" ), helpcontext(0x0000011a) ] HRESULT ReplyTo ([out,retval] BSTR* pReplyTo); [ id( 115 ), propput, helpstring( "The addresses (Reply-To header) to which to reply" ), helpcontext(0x0000011a) ] HRESULT ReplyTo ([in] BSTR varReplyTo);
  302. [ id( 116 ), propget, helpstring( "The delivery status notification options for the message" ), helpcontext(0x0000011b) ] HRESULT DSNOptions ([out,retval] CdoDSNOptions* pDSNOptions); [ id( 116 ), propput, helpstring( "The delivery status notification options for the message" ), helpcontext(0x0000011b) ] HRESULT DSNOptions ([in] CdoDSNOptions varDSNOptions);
  303. [ id( 119 ), propget, helpstring( "The date on which the message was sent" ), helpcontext( 0x0000011c ), readonly ] HRESULT SentOn ([out,retval] DATE* varSentOn);
  304. [ id( 120 ), propget, helpstring( "The subject (Subject header) of the message" ), helpcontext(0x0000011d) ] HRESULT Subject ([out,retval] BSTR* pSubject); [ id( 120 ), propput, helpstring( "The subject (Subject header) of the message" ), helpcontext(0x0000011d) ] HRESULT Subject ([in] BSTR varSubject);
  305. [ id( 121 ), propget, helpstring( "The principle (To header) recipients of the message" ), helpcontext(0x0000011e) ] HRESULT To ([out,retval] BSTR* pTo); [ id( 121 ), propput, helpstring( "The principle (To header) recipients of the message" ), helpcontext(0x0000011e) ] HRESULT To ([in] BSTR varTo);
  306. [ id( 123 ), propget, helpstring( "The text/plain portion of the message body" ), helpcontext(0x0000011f) ] HRESULT TextBody ([out,retval] BSTR* pTextBody); [ id( 123 ), propput, helpstring( "The text/plain portion of the message body" ), helpcontext(0x0000011f) ] HRESULT TextBody ([in] BSTR varTextBody);
  307. [ id( 124 ), propget, helpstring( "The text/html portion of the message body" ), helpcontext(0x00000120) ] HRESULT HTMLBody ([out,retval] BSTR* pHTMLBody); [ id( 124 ), propput, helpstring( "The text/html portion of the message body" ), helpcontext(0x00000120) ] HRESULT HTMLBody ([in] BSTR varHTMLBody);
  308. [ id( 125 ), propget, helpstring( "Returns the message's Attachments collection" ), helpcontext( 0x00000121 ), readonly ] HRESULT Attachments ([out,retval] IBodyParts ** varAttachments);
  309. [ id( 126 ), propget, helpstring( "The sender of the message" ), helpcontext(0x00000122) ] HRESULT Sender ([out,retval] BSTR* pSender); [ id( 126 ), propput, helpstring( "The sender of the message" ), helpcontext(0x00000122) ] HRESULT Sender ([in] BSTR varSender);
  310. [ id( 127 ), propget, helpstring( "The object's associated Configuration object" ), helpcontext( 0x00000123) ] HRESULT Configuration ([out,retval] IConfiguration ** pConfiguration); [ id( 127 ), propput, helpstring( "The object's associated Configuration object" ), helpcontext( 0x00000123 ) ] HRESULT Configuration ([in] IConfiguration * varConfiguration); [ id( 127 ), propputref, helpstring( "The object's associated Configuration object" ), helpcontext( 0x00000123 ) ] HRESULT Configuration ([in] IConfiguration * varConfiguration);
  311. [ id( 128 ), propget, helpstring( "Specifies whether a text/plain alternate representation should automatically be generated from the text/html part of the message body" ), helpcontext(0x00000124) ] HRESULT AutoGenerateTextBody ([out,retval] VARIANT_BOOL* pAutoGenerateTextBody); [ id( 128 ), propput, helpstring( "Specifies whether a text/plain alternate representation should automatically be generated from the text/html part of the message body" ), helpcontext(0x00000124) ] HRESULT AutoGenerateTextBody ([in] VARIANT_BOOL varAutoGenerateTextBody);
  312. [ id( 129 ), propget, helpstring( "Returns the transport envelope Fields collection for the message (transport event sinks only) " ), helpcontext( 0x00000125 ), readonly ] HRESULT EnvelopeFields ([out,retval] Fields ** varEnvelopeFields);
  313. [ id( 130 ), propget, helpstring( "Returns the BodyPart object (IBodyPart interface) containing the text/plain part of the message body" ), helpcontext( 0x00000126 ), readonly ] HRESULT TextBodyPart ([out,retval] IBodyPart ** varTextBodyPart);
  314. [ id( 131 ), propget, helpstring( "Returns the BodyPart object (IBodyPart interface) containing the text/html portion of the message body" ), helpcontext( 0x00000127 ), readonly ] HRESULT HTMLBodyPart ([out,retval] IBodyPart ** varHTMLBodyPart);
  315. [ id( 132 ), propget, helpstring( "Returns the IBodyPart interface on the object" ), helpcontext( 0x00000128 ), readonly ] HRESULT BodyPart ([out,retval] IBodyPart ** varBodyPart);
  316. [ id( 133 ), propget, helpstring( "Returns the IDataSource interface on the object" ), helpcontext( 0x00000129 ), readonly ] HRESULT DataSource ([out,retval] IDataSource ** varDataSource);
  317. [ id( 134 ), propget, helpstring( "Returns the Fields collection for the message" ), helpcontext( 0x0000012a ), readonly ] HRESULT Fields ([out,retval] Fields ** varFields);
  318. [ id( 135 ), propget, helpstring( "Specifies whether or not mail delivery notifications should be sent when the message is received" ), helpcontext(0x0000012b) ] HRESULT MDNRequested ([out,retval] VARIANT_BOOL* pMDNRequested); [ id( 135 ), propput, helpstring( "Specifies whether or not mail delivery notifications should be sent when the message is received" ), helpcontext(0x0000012b) ] HRESULT MDNRequested ([in] VARIANT_BOOL varMDNRequested);
  319. [ id( 150 ), helpstring ( "Adds a BodyPart object with content referenced within the text/html portion of the message body" ), helpcontext( 0x0000012c ) ] HRESULT AddRelatedBodyPart(
  320. [in] BSTR URL,
  321. [in] BSTR Reference,
  322. [in] CdoReferenceType ReferenceType,
  323. [in, optional] BSTR UserName,
  324. [in, optional] BSTR Password,
  325. [out,retval] IBodyPart **ppBody);
  326. [ id( 151 ), helpstring ( "Adds an attachment (BodyPart) to the message" ), helpcontext( 0x0000012d ) ] HRESULT AddAttachment(
  327. [in] BSTR URL,
  328. [in, optional] BSTR UserName,
  329. [in, optional] BSTR Password,
  330. [out,retval] IBodyPart **ppBody);
  331. [ id( 152 ), helpstring ( "Creates an MHTML-formatted message body using the contents at the specified URL" ), helpcontext( 0x0000012e ) ] HRESULT CreateMHTMLBody(
  332. [in] BSTR URL,
  333. [in, defaultvalue(cdoSuppressNone)] CdoMHTMLFlags Flags,
  334. [in, optional] BSTR UserName,
  335. [in, optional] BSTR Password);
  336. [ id( 153 ), helpstring ( "Returns a Message object that can be used to forward the message" ), helpcontext( 0x0000012f ) ] HRESULT Forward(
  337. [out,retval] IMessage **ppMsg);
  338. [ id( 154 ), helpstring ( "Post the message using the method specified in the associated Configuration object" ), helpcontext( 0x00000130 ) ] HRESULT Post();
  339. [ id( 155 ), helpstring ( "Returns a Message object that can be used to post a reply to the message" ), helpcontext( 0x00000131 ) ] HRESULT PostReply(
  340. [out,retval] IMessage **ppMsg);
  341. [ id( 156 ), helpstring ( "Returns a Message object that can be used to reply to the message" ), helpcontext( 0x00000132 ) ] HRESULT Reply(
  342. [out,retval] IMessage **ppMsg);
  343. [ id( 157 ), helpstring ( "Returns a Message object that can be used to post a reply to all recipients of the message" ), helpcontext( 0x00000133 ) ] HRESULT ReplyAll(
  344. [out,retval] IMessage **ppMsg);
  345. [ id( 158 ), helpstring ( "Send the message using the method specified in the associated Configuration object" ), helpcontext( 0x00000136 ) ] HRESULT Send();
  346. [ id( 159 ), helpstring ( "Returns a Stream object containing the message in serialized format" ), helpcontext( 0x00000134 ) ] HRESULT GetStream(
  347. [out,retval] _Stream **ppStream);
  348. [ id( 160 ), helpstring ( "Returns the specified interface on the object" ), helpcontext( 0x00000135 ) ] HRESULT GetInterface(
  349. [in] BSTR Interface,
  350. [out, retval] IDispatch** ppUnknown);
  351. };
  352. [ object, uuid(CD000021-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to manage a message body part"), helpcontext(0x00000140), pointer_default(unique) ] interface IBodyPart : IDispatch
  353. {
  354. [ id( 200 ), propget, helpstring( "Returns the object's BodyParts collection" ), helpcontext( 0x00000141 ), readonly ] HRESULT BodyParts ([out,retval] IBodyParts ** varBodyParts);
  355. [ id( 201 ), propget, helpstring( "The encoding mechanism for the body part's content" ), helpcontext(0x00000142) ] HRESULT ContentTransferEncoding ([out,retval] BSTR* pContentTransferEncoding); [ id( 201 ), propput, helpstring( "The encoding mechanism for the body part's content" ), helpcontext(0x00000142) ] HRESULT ContentTransferEncoding ([in] BSTR varContentTransferEncoding);
  356. [ id( 202 ), propget, helpstring( "The content media type portion of the body part's content type" ), helpcontext(0x00000143) ] HRESULT ContentMediaType ([out,retval] BSTR* pContentMediaType); [ id( 202 ), propput, helpstring( "The content media type portion of the body part's content type" ), helpcontext(0x00000143) ] HRESULT ContentMediaType ([in] BSTR varContentMediaType);
  357. [ id( 203 ), propget, helpstring( "Returns the Fields collection for the body part" ), helpcontext( 0x00000144 ), readonly ] HRESULT Fields ([out,retval] Fields ** varFields);
  358. [ id( 204 ), propget, helpstring( "The character set of the body part text content (not applicable for non-text content types)" ), helpcontext(0x00000145) ] HRESULT Charset ([out,retval] BSTR* pCharset); [ id( 204 ), propput, helpstring( "The character set of the body part text content (not applicable for non-text content types)" ), helpcontext(0x00000145) ] HRESULT Charset ([in] BSTR varCharset);
  359. [ id( 205 ), propget, helpstring( "Returns the value of the filename parameter for the content-disposition MIME header" ), helpcontext( 0x00000146 ), readonly ] HRESULT FileName ([out,retval] BSTR* varFileName);
  360. [ id( 207 ), propget, helpstring( "Returns the IDataSource interface on the object" ), helpcontext( 0x00000147 ), readonly ] HRESULT DataSource ([out,retval] IDataSource ** varDataSource);
  361. [ id( 208 ), propget, helpstring( "The content class for the body part's content" ), helpcontext(0x00000148) ] HRESULT ContentClass ([out,retval] BSTR* pContentClass); [ id( 208 ), propput, helpstring( "The content class for the body part's content" ), helpcontext(0x00000148) ] HRESULT ContentClass ([in] BSTR varContentClass);
  362. [ id( 209 ), propget, helpstring( "The friendly name for the body part's content class" ), helpcontext(0x00000149) ] HRESULT ContentClassName ([out,retval] BSTR* pContentClassName); [ id( 209 ), propput, helpstring( "The friendly name for the body part's content class" ), helpcontext(0x00000149) ] HRESULT ContentClassName ([in] BSTR varContentClassName);
  363. [ id( 210 ), propget, helpstring( "Returns the parent object in the body part hierarchy" ), helpcontext( 0x0000014a ), readonly ] HRESULT Parent ([out,retval] IBodyPart** varParent);
  364. [ id( 250 ), helpstring ( "Adds a body part to the object's BodyParts collection" ), helpcontext( 0x0000014b ) ] HRESULT AddBodyPart(
  365. [in, defaultvalue(-1)] long Index,
  366. [out, retval] IBodyPart **ppPart);
  367. [ id( 251 ), helpstring ( "Saves the body part contents to the specified file" ), helpcontext( 0x0000014c ) ] HRESULT SaveToFile(
  368. [in] BSTR FileName);
  369. [ id( 252 ), helpstring ( "Returns a Stream object containing the body part content in serialized, encoded format" ), helpcontext( 0x0000014d ) ] HRESULT GetEncodedContentStream(
  370. [out, retval]_Stream **ppStream);
  371. [ id( 253 ), helpstring ( "Returns a Stream object containing the body part content in serialized, decoded format" ), helpcontext( 0x0000014e ) ] HRESULT GetDecodedContentStream(
  372. [out, retval]_Stream **ppStream);
  373. [ id( 254 ), helpstring ( "Returns a Stream object containing the complete body part in serialized, encoded format" ), helpcontext( 0x0000014f ) ] HRESULT GetStream(
  374. [out,retval] _Stream **ppStream);
  375. [ id( 255 ), helpstring ( "Returns the specified parameter from the body part's specified MIME header" ), helpcontext( 0x00000150 ) ] HRESULT GetFieldParameter(
  376. [in] BSTR FieldName,
  377. [in] BSTR Parameter,
  378. [out, retval] BSTR* pbstrValue);
  379. [ id( 160 ), helpstring ( "Returns the specified interface on the object" ), helpcontext( 0x00000151 ) ] HRESULT GetInterface(
  380. [in] BSTR Interface,
  381. [out, retval] IDispatch** ppUnknown);
  382. };
  383. [ object, uuid(CD000022-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to manage configuration information for CDO objects"), helpcontext(0x00000160), pointer_default(unique) ] interface IConfiguration : IDispatch
  384. {
  385. [ id( 0 ), propget, helpstring( "Returns the Fields collection for the object" ), helpcontext( 0x00000161 ), readonly ] HRESULT Fields ([out,retval] Fields ** varFields);
  386. [ id( 50 ), helpstring ( "Loads the specified configuration" ), helpcontext( 0x00000162 ) ] HRESULT Load(
  387. [in] CdoConfigSource LoadFrom,
  388. [in, optional] BSTR URL);
  389. [ id( 160 ), helpstring ( "Returns the specified interface on the object" ), helpcontext( 0x00000163 ) ] HRESULT GetInterface(
  390. [in] BSTR Interface,
  391. [out, retval] IDispatch** ppUnknown);
  392. };
  393. [ object, uuid(CD000025-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to manage a collection of Message objects on the file system. Returned by IDropDirectory.GetMessages"), helpcontext(0x00000180), pointer_default(unique) ] interface IMessages : IDispatch
  394. {
  395. [
  396. id( 0 ),
  397. propget,
  398. helpstring( "Returns the message specified by index from the collection" ),
  399. helpcontext( 0x00000181 ),
  400. readonly
  401. ] HRESULT Item (long Index,
  402. [out, retval] IMessage **ppMessage);
  403. [ id( 1 ), propget, helpstring( "Returns the number of message objects in the collection" ), helpcontext( 0x00000182 ), readonly ] HRESULT Count ([out,retval] long* varCount);
  404. [ id( 2 ), helpstring ( "Deletes the specifed message object in the collection" ), helpcontext( 0x00000183 ) ] HRESULT Delete(
  405. [in] long Index);
  406. [ id( 3 ), helpstring ( "Deletes all message objects in the collection" ), helpcontext( 0x00000184 ) ] HRESULT DeleteAll();
  407. [propget, restricted, id(DISPID_NEWENUM)]
  408. HRESULT _NewEnum(
  409. [out, retval] IUnknown** retval);
  410. [
  411. id( 5 ),
  412. propget,
  413. helpstring( "Returns the name of the file containing the specified message on the file system" ),
  414. helpcontext( 0x00000185 ),
  415. readonly
  416. ] HRESULT Filename (VARIANT var,
  417. [out, retval] BSTR *Filename);
  418. };
  419. [ object, uuid(CD000024-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to manage a collection of messages on the file system"), helpcontext(0x00000190), pointer_default(unique) ] interface IDropDirectory : IDispatch
  420. {
  421. [
  422. id( 200 ),
  423. helpstring( "Returns a collection of messages contained in the specified directory on the file system. Default is SMTP drop directory." ),
  424. helpcontext( 0x00000191 ),
  425. readonly
  426. ]
  427. HRESULT GetMessages ([in, optional] BSTR DirName,
  428. [out,retval] IMessages** Msgs);
  429. };
  430. [ object, uuid(CD000023-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("Defines abstract methods and properties used to manage a collection of BodyPart objects"), helpcontext(0x00000170), pointer_default(unique) ] interface IBodyParts : IDispatch
  431. {
  432. [ id( 1 ), propget, helpstring( "Returns the number of BodyPart objects in the collection" ), helpcontext( 0x00000171 ), readonly ] HRESULT Count ([out,retval] long* varCount);
  433. [
  434. id( 0 ),
  435. propget,
  436. helpstring( "Returns the specified BodyPart object from the collection" ),
  437. helpcontext( 0x00000172 ),
  438. readonly
  439. ]
  440. HRESULT Item (
  441. [in] long Index,
  442. [out, retval] IBodyPart **ppBody);
  443. [propget, restricted, id(DISPID_NEWENUM)]
  444. HRESULT _NewEnum(
  445. [out, retval] IUnknown** retval);
  446. [ id( 2 ), helpstring ( "Deletes the specified BodyPart object from the collection. Can use index or object reference" ), helpcontext( 0x00000173 ) ] HRESULT Delete(
  447. [in] VARIANT varBP);
  448. [ id( 3 ), helpstring ( "Deletes all BodyPart objects in the collection" ), helpcontext( 0x00000174 ) ] HRESULT DeleteAll();
  449. [ id( 4 ), helpstring ( "Adds a BodyPart object to the collection at the specified index, and returns the newly added object" ), helpcontext( 0x00000175 ) ] HRESULT Add(
  450. [in, defaultvalue(-1)] long Index,
  451. [out, retval] IBodyPart **ppPart);
  452. };
  453. [ object, uuid(CD000030-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("ISMTPScriptConnector interface"), pointer_default(unique), hidden ] interface ISMTPScriptConnector : IDispatch
  454. {
  455. };
  456. [ object, uuid(CD000034-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("INNTPFinalScriptConnector interface"), pointer_default(unique), hidden ] interface INNTPEarlyScriptConnector : IDispatch
  457. {
  458. };
  459. [ object, uuid(CD000031-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("INNTPPostScriptConnector interface"), pointer_default(unique), hidden ] interface INNTPPostScriptConnector : IDispatch
  460. {
  461. };
  462. [ object, uuid(CD000032-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("INNTPFinalScriptConnector interface"), pointer_default(unique), hidden ] interface INNTPFinalScriptConnector : IDispatch
  463. {
  464. };
  465. [ object, uuid(CD000026-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("The interface to implement when creating SMTP OnArrival event sinks"), helpcontext(0x00000200), pointer_default(unique) ] interface ISMTPOnArrival : IDispatch
  466. {
  467. [ id( 256 ), helpstring ( "Called by the SMTP event source when a message arrives" ), helpcontext( 0x00000201 ) ] HRESULT OnArrival(
  468. [in] IMessage *Msg, [in,out]CdoEventStatus *EventStatus);
  469. };
  470. [ object, uuid(CD000033-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("The interface to implement when creating NNTP OnPostEarly event sinks"), helpcontext(0x00000210), pointer_default(unique) ] interface INNTPOnPostEarly : IDispatch
  471. {
  472. [ id( 256 ), helpstring ( "Called by the NNTP event source when message headers arrive" ), helpcontext( 0x00000211 ) ] HRESULT OnPostEarly(
  473. [in] IMessage *Msg, [in,out]CdoEventStatus *EventStatus);
  474. }
  475. [ object, uuid(CD000027-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("The interface to implement when creating NNTP OnPost event sinks"), helpcontext(0x00000220), pointer_default(unique) ] interface INNTPOnPost : IDispatch
  476. {
  477. [ id( 256 ), helpstring ( "Called by the NNTP event source when a message is posted" ), helpcontext( 0x00000221 ) ] HRESULT OnPost(
  478. [in] IMessage *Msg, [in,out]CdoEventStatus *EventStatus);
  479. };
  480. [ object, uuid(CD000028-8B95-11D1-82DB-00C04FB1625D), dual, nonextensible, helpstring("The interface to implement when creating NNTP OnPostFinal event sinks"), helpcontext(0x00000230), pointer_default(unique) ] interface INNTPOnPostFinal : IDispatch
  481. {
  482. [ id( 256 ), helpstring ( "Called by the NNTP event source after a posted message has been saved to disk or the Exchange store" ), helpcontext( 0x00000231 ) ] HRESULT OnPostFinal(
  483. [in] IMessage *Msg, [in,out]CdoEventStatus *EventStatus);
  484. };
  485. [
  486. uuid(CD000000-8B95-11D1-82DB-00C04FB1625D),
  487. version(1.0),
  488. helpfile("cdosys.chm"),
  489. helpstring("Microsoft CDO for Windows 2000 Library")
  490. ]
  491. library CDO
  492. {
  493. importlib("stdole32.tlb");
  494. importlib("stdole2.tlb");
  495. importlib("msado15.dll");
  496. enum CdoConfigSource;
  497. enum CdoDSNOptions;
  498. enum CdoEventStatus;
  499. enum cdoImportanceValues;
  500. enum CdoMessageStat;
  501. enum CdoMHTMLFlags;
  502. enum CdoNNTPProcessingField;
  503. enum CdoPostUsing;
  504. enum cdoPriorityValues;
  505. enum CdoProtocolsAuthentication;
  506. enum CdoReferenceType;
  507. enum CdoSendUsing;
  508. enum cdoSensitivityValues;
  509. enum CdoTimeZoneId;
  510. [ dllname("cdosys.dll") ]
  511. module CdoCalendar
  512. {
  513. const BSTR cdoTimeZoneIDURN =L"urn:schemas:calendar:timezoneid";
  514. };
  515. [ dllname("cdosys.dll") ]
  516. module CdoCharset
  517. {
  518. const BSTR cdoBIG5 =L"big5";
  519. const BSTR cdoEUC_JP =L"euc-jp";
  520. const BSTR cdoEUC_KR =L"euc-kr";
  521. const BSTR cdoGB2312 =L"gb2312";
  522. const BSTR cdoISO_2022_JP =L"iso-2022-jp";
  523. const BSTR cdoISO_2022_KR =L"iso-2022-kr";
  524. const BSTR cdoISO_8859_1 =L"iso-8859-1";
  525. const BSTR cdoISO_8859_2 =L"iso-8859-2";
  526. const BSTR cdoISO_8859_3 =L"iso-8859-3";
  527. const BSTR cdoISO_8859_4 =L"iso-8859-4";
  528. const BSTR cdoISO_8859_5 =L"iso-8859-5";
  529. const BSTR cdoISO_8859_6 =L"iso-8859-6";
  530. const BSTR cdoISO_8859_7 =L"iso-8859-7";
  531. const BSTR cdoISO_8859_8 =L"iso-8859-8";
  532. const BSTR cdoISO_8859_9 =L"iso-8859-9";
  533. const BSTR cdoKOI8_R =L"koi8-r";
  534. const BSTR cdoShift_JIS =L"shift-jis";
  535. const BSTR cdoUS_ASCII =L"us-ascii";
  536. const BSTR cdoUTF_7 =L"utf-7";
  537. const BSTR cdoUTF_8 =L"utf-8";
  538. };
  539. [ dllname("cdosys.dll") ]
  540. module CdoConfiguration
  541. {
  542. const BSTR cdoAutoPromoteBodyParts =L"http://schemas.microsoft.com/cdo/configuration/autopromotebodyparts";
  543. const BSTR cdoFlushBuffersOnWrite =L"http://schemas.microsoft.com/cdo/configuration/flushbuffersonwrite";
  544. const BSTR cdoHTTPCookies =L"http://schemas.microsoft.com/cdo/configuration/httpcookies";
  545. const BSTR cdoLanguageCode =L"http://schemas.microsoft.com/cdo/configuration/languagecode";
  546. const BSTR cdoNNTPAccountName =L"http://schemas.microsoft.com/cdo/configuration/nntpaccountname";
  547. const BSTR cdoNNTPAuthenticate =L"http://schemas.microsoft.com/cdo/configuration/nntpauthenticate";
  548. const BSTR cdoNNTPConnectionTimeout =L"http://schemas.microsoft.com/cdo/configuration/nntpconnectiontimeout";
  549. const BSTR cdoNNTPServer =L"http://schemas.microsoft.com/cdo/configuration/nntpserver";
  550. const BSTR cdoNNTPServerPickupDirectory =L"http://schemas.microsoft.com/cdo/configuration/nntpserverpickupdirectory";
  551. const BSTR cdoNNTPServerPort =L"http://schemas.microsoft.com/cdo/configuration/nntpserverport";
  552. const BSTR cdoNNTPUseSSL =L"http://schemas.microsoft.com/cdo/configuration/nntpusessl";
  553. const BSTR cdoPostEmailAddress =L"http://schemas.microsoft.com/cdo/configuration/postemailaddress";
  554. const BSTR cdoPostPassword =L"http://schemas.microsoft.com/cdo/configuration/postpassword";
  555. const BSTR cdoPostUserName =L"http://schemas.microsoft.com/cdo/configuration/postusername";
  556. const BSTR cdoPostUserReplyEmailAddress =L"http://schemas.microsoft.com/cdo/configuration/postuserreplyemailaddress";
  557. const BSTR cdoPostUsingMethod =L"http://schemas.microsoft.com/cdo/configuration/postusing";
  558. const BSTR cdoSaveSentItems =L"http://schemas.microsoft.com/cdo/configuration/savesentitems";
  559. const BSTR cdoSendEmailAddress =L"http://schemas.microsoft.com/cdo/configuration/sendemailaddress";
  560. const BSTR cdoSendPassword =L"http://schemas.microsoft.com/cdo/configuration/sendpassword";
  561. const BSTR cdoSendUserName =L"http://schemas.microsoft.com/cdo/configuration/sendusername";
  562. const BSTR cdoSendUserReplyEmailAddress =L"http://schemas.microsoft.com/cdo/configuration/senduserreplyemailaddress";
  563. const BSTR cdoSendUsingMethod =L"http://schemas.microsoft.com/cdo/configuration/sendusing";
  564. const BSTR cdoSMTPAccountName =L"http://schemas.microsoft.com/cdo/configuration/smtpaccountname";
  565. const BSTR cdoSMTPAuthenticate =L"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";
  566. const BSTR cdoSMTPConnectionTimeout =L"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout";
  567. const BSTR cdoSMTPServer =L"http://schemas.microsoft.com/cdo/configuration/smtpserver";
  568. const BSTR cdoSMTPServerPickupDirectory =L"http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory";
  569. const BSTR cdoSMTPServerPort =L"http://schemas.microsoft.com/cdo/configuration/smtpserverport";
  570. const BSTR cdoSMTPUseSSL =L"http://schemas.microsoft.com/cdo/configuration/smtpusessl";
  571. const BSTR cdoURLGetLatestVersion =L"http://schemas.microsoft.com/cdo/configuration/urlgetlatestversion";
  572. const BSTR cdoURLProxyBypass =L"http://schemas.microsoft.com/cdo/configuration/urlproxybypass";
  573. const BSTR cdoURLProxyServer =L"http://schemas.microsoft.com/cdo/configuration/urlproxyserver";
  574. const BSTR cdoUseMessageResponseText =L"http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext";
  575. };
  576. [ dllname("cdosys.dll") ]
  577. module CdoContentTypeValues
  578. {
  579. const BSTR cdoGif =L"image/gif";
  580. const BSTR cdoJpeg =L"image/jpeg";
  581. const BSTR cdoMessageExternalBody =L"message/external-body";
  582. const BSTR cdoMessagePartial =L"message/partial";
  583. const BSTR cdoMessageRFC822 =L"message/rfc822";
  584. const BSTR cdoMultipartAlternative =L"multipart/alternative";
  585. const BSTR cdoMultipartDigest =L"multipart/digest";
  586. const BSTR cdoMultipartMixed =L"multipart/mixed";
  587. const BSTR cdoMultipartRelated =L"multipart/related";
  588. const BSTR cdoTextHTML =L"text/html";
  589. const BSTR cdoTextPlain =L"text/plain";
  590. };
  591. [ dllname("cdosys.dll") ]
  592. module CdoEncodingType
  593. {
  594. const BSTR cdo7bit =L"7bit";
  595. const BSTR cdo8bit =L"8bit";
  596. const BSTR cdoBase64 =L"base64";
  597. const BSTR cdoBinary =L"binary";
  598. const BSTR cdoMacBinHex40 =L"mac-binhex40";
  599. const BSTR cdoQuotedPrintable =L"quoted-printable";
  600. const BSTR cdoUuencode =L"uuencode";
  601. };
  602. [ dllname("cdosys.dll") ]
  603. module CdoExchange
  604. {
  605. const BSTR cdoSensitivity =L"http://schemas.microsoft.com/exchange/sensitivity";
  606. };
  607. [ dllname("cdosys.dll") ]
  608. module CdoHTTPMail
  609. {
  610. const BSTR cdoAttachmentFilename =L"urn:schemas:httpmail:attachmentfilename";
  611. const BSTR cdoBcc =L"urn:schemas:httpmail:bcc";
  612. const BSTR cdoCc =L"urn:schemas:httpmail:cc";
  613. const BSTR cdoContentDispositionType =L"urn:schemas:httpmail:content-disposition-type";
  614. const BSTR cdoContentMediaType =L"urn:schemas:httpmail:content-media-type";
  615. const BSTR cdoDate =L"urn:schemas:httpmail:date";
  616. const BSTR cdoDateReceived =L"urn:schemas:httpmail:datereceived";
  617. const BSTR cdoFrom =L"urn:schemas:httpmail:from";
  618. const BSTR cdoHasAttachment =L"urn:schemas:httpmail:hasattachment";
  619. const BSTR cdoHTMLDescription =L"urn:schemas:httpmail:htmldescription";
  620. const BSTR cdoImportance =L"urn:schemas:httpmail:importance";
  621. const BSTR cdoNormalizedSubject =L"urn:schemas:httpmail:normalizedsubject";
  622. const BSTR cdoPriority =L"urn:schemas:httpmail:priority";
  623. const BSTR cdoReplyTo =L"urn:schemas:httpmail:reply-to";
  624. const BSTR cdoSender =L"urn:schemas:httpmail:sender";
  625. const BSTR cdoSubject =L"urn:schemas:httpmail:subject";
  626. const BSTR cdoTextDescription =L"urn:schemas:httpmail:textdescription";
  627. const BSTR cdoThreadTopic =L"urn:schemas:httpmail:thread-topic";
  628. const BSTR cdoTo =L"urn:schemas:httpmail:to";
  629. };
  630. [ dllname("cdosys.dll") ]
  631. module CdoInterfaces
  632. {
  633. const BSTR cdoAdoStream =L"_Stream";
  634. const BSTR cdoIBodyPart =L"IBodyPart";
  635. const BSTR cdoIConfiguration =L"IConfiguration";
  636. const BSTR cdoIDataSource =L"IDataSource";
  637. const BSTR cdoIMessage =L"IMessage";
  638. const BSTR cdoIStream =L"IStream";
  639. };
  640. [ dllname("cdosys.dll") ]
  641. module CdoMailHeader
  642. {
  643. const BSTR cdoApproved =L"urn:schemas:mailheader:approved";
  644. const BSTR cdoComment =L"urn:schemas:mailheader:comment";
  645. const BSTR cdoContentBase =L"urn:schemas:mailheader:content-base";
  646. const BSTR cdoContentDescription =L"urn:schemas:mailheader:content-description";
  647. const BSTR cdoContentDisposition =L"urn:schemas:mailheader:content-disposition";
  648. const BSTR cdoContentId =L"urn:schemas:mailheader:content-id";
  649. const BSTR cdoContentLanguage =L"urn:schemas:mailheader:content-language";
  650. const BSTR cdoContentLocation =L"urn:schemas:mailheader:content-location";
  651. const BSTR cdoContentTransferEncoding =L"urn:schemas:mailheader:content-transfer-encoding";
  652. const BSTR cdoContentType =L"urn:schemas:mailheader:content-type";
  653. const BSTR cdoControl =L"urn:schemas:mailheader:control";
  654. const BSTR cdoDisposition =L"urn:schemas:mailheader:disposition";
  655. const BSTR cdoDispositionNotificationTo =L"urn:schemas:mailheader:disposition-notification-to";
  656. const BSTR cdoDistribution =L"urn:schemas:mailheader:distribution";
  657. const BSTR cdoExpires =L"urn:schemas:mailheader:expires";
  658. const BSTR cdoFollowupTo =L"urn:schemas:mailheader:followup-to";
  659. const BSTR cdoInReplyTo =L"urn:schemas:mailheader:in-reply-to";
  660. const BSTR cdoLines =L"urn:schemas:mailheader:lines";
  661. const BSTR cdoMessageId =L"urn:schemas:mailheader:message-id";
  662. const BSTR cdoMIMEVersion =L"urn:schemas:mailheader:mime-version";
  663. const BSTR cdoNewsgroups =L"urn:schemas:mailheader:newsgroups";
  664. const BSTR cdoOrganization =L"urn:schemas:mailheader:organization";
  665. const BSTR cdoOriginalRecipient =L"urn:schemas:mailheader:original-recipient";
  666. const BSTR cdoPath =L"urn:schemas:mailheader:path";
  667. const BSTR cdoPostingVersion =L"urn:schemas:mailheader:posting-version";
  668. const BSTR cdoReceived =L"urn:schemas:mailheader:received";
  669. const BSTR cdoReferences =L"urn:schemas:mailheader:references";
  670. const BSTR cdoRelayVersion =L"urn:schemas:mailheader:relay-version";
  671. const BSTR cdoReturnPath =L"urn:schemas:mailheader:return-path";
  672. const BSTR cdoReturnReceiptTo =L"urn:schemas:mailheader:return-receipt-to";
  673. const BSTR cdoSummary =L"urn:schemas:mailheader:summary";
  674. const BSTR cdoThreadIndex =L"urn:schemas:mailheader:thread-index";
  675. const BSTR cdoXMailer =L"urn:schemas:mailheader:x-mailer";
  676. const BSTR cdoXref =L"urn:schemas:mailheader:xref";
  677. const BSTR cdoXUnsent =L"urn:schemas:mailheader:x-unsent";
  678. };
  679. [ dllname("cdosys.dll") ]
  680. module CdoNamespace
  681. {
  682. const BSTR cdoNSConfiguration =L"http://schemas.microsoft.com/cdo/configuration/";
  683. const BSTR cdoNSContacts =L"urn:schemas:contacts:";
  684. const BSTR cdoNSHTTPMail =L"urn:schemas:httpmail:";
  685. const BSTR cdoNSMailHeader =L"urn:schemas:mailheader:";
  686. const BSTR cdoNSNNTPEnvelope =L"http://schemas.microsoft.com/cdo/nntpenvelope/";
  687. const BSTR cdoNSSMTPEnvelope =L"http://schemas.microsoft.com/cdo/smtpenvelope/";
  688. };
  689. [ dllname("cdosys.dll") ]
  690. module CdoNNTPEnvelope
  691. {
  692. const BSTR cdoNewsgroupList =L"http://schemas.microsoft.com/cdo/nntpenvelope/newsgrouplist";
  693. const BSTR cdoNNTPProcessing =L"http://schemas.microsoft.com/cdo/nntpenvelope/nntpprocessing";
  694. };
  695. [ dllname("cdosys.dll") ]
  696. module CdoSMTPEnvelope
  697. {
  698. const BSTR cdoArrivalTime =L"http://schemas.microsoft.com/cdo/smtpenvelope/arrivaltime";
  699. const BSTR cdoClientIPAddress =L"http://schemas.microsoft.com/cdo/smtpenvelope/clientipaddress";
  700. const BSTR cdoMessageStatus =L"http://schemas.microsoft.com/cdo/smtpenvelope/messagestatus";
  701. const BSTR cdoPickupFileName =L"http://schemas.microsoft.com/cdo/smtpenvelope/pickupfilename";
  702. const BSTR cdoRecipientList =L"http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist";
  703. const BSTR cdoSenderEmailAddress =L"http://schemas.microsoft.com/cdo/smtpenvelope/senderemailaddress";
  704. };
  705. [ dllname("cdosys.dll") ]
  706. module CdoErrors
  707. {
  708. const LONG CDO_E_UNCAUGHT_EXCEPTION = 0x80040201L;
  709. const LONG CDO_E_NOT_OPENED = 0x80040202L;
  710. const LONG CDO_E_UNSUPPORTED_DATASOURCE = 0x80040203L;
  711. const LONG CDO_E_INVALID_PROPERTYNAME = 0x80040204L;
  712. const LONG CDO_E_PROP_UNSUPPORTED = 0x80040205L;
  713. const LONG CDO_E_INACTIVE = 0x80040206L;
  714. const LONG CDO_E_NO_SUPPORT_FOR_OBJECTS = 0x80040207L;
  715. const LONG CDO_E_NOT_AVAILABLE = 0x80040208L;
  716. const LONG CDO_E_NO_DEFAULT_DROP_DIR = 0x80040209L;
  717. const LONG CDO_E_SMTP_SERVER_REQUIRED = 0x8004020AL;
  718. const LONG CDO_E_NNTP_SERVER_REQUIRED = 0x8004020BL;
  719. const LONG CDO_E_RECIPIENT_MISSING = 0x8004020CL;
  720. const LONG CDO_E_FROM_MISSING = 0x8004020DL;
  721. const LONG CDO_E_SENDER_REJECTED = 0x8004020EL;
  722. const LONG CDO_E_RECIPIENTS_REJECTED = 0x8004020FL;
  723. const LONG CDO_E_NNTP_POST_FAILED = 0x80040210L;
  724. const LONG CDO_E_SMTP_SEND_FAILED = 0x80040211L;
  725. const LONG CDO_E_CONNECTION_DROPPED = 0x80040212L;
  726. const LONG CDO_E_FAILED_TO_CONNECT = 0x80040213L;
  727. const LONG CDO_E_INVALID_POST = 0x80040214L;
  728. const LONG CDO_E_AUTHENTICATION_FAILURE = 0x80040215L;
  729. const LONG CDO_E_INVALID_CONTENT_TYPE = 0x80040216L;
  730. const LONG CDO_E_LOGON_FAILURE = 0x80040217L;
  731. const LONG CDO_E_HTTP_NOT_FOUND = 0x80040218L;
  732. const LONG CDO_E_HTTP_FORBIDDEN = 0x80040219L;
  733. const LONG CDO_E_HTTP_FAILED = 0x8004021AL;
  734. const LONG CDO_E_MULTIPART_NO_DATA = 0x8004021BL;
  735. const LONG CDO_E_INVALID_ENCODING_FOR_MULTIPART = 0x8004021CL;
  736. const LONG CDO_E_PROP_NOT_FOUND = 0x8004021EL;
  737. const LONG CDO_E_INVALID_SEND_OPTION = 0x80040220L;
  738. const LONG CDO_E_INVALID_POST_OPTION = 0x80040221L;
  739. const LONG CDO_E_NO_PICKUP_DIR = 0x80040222L;
  740. const LONG CDO_E_NOT_ALL_DELETED = 0x80040223L;
  741. const LONG CDO_E_PROP_READONLY = 0x80040227L;
  742. const LONG CDO_E_PROP_CANNOT_DELETE = 0x80040228L;
  743. const LONG CDO_E_BAD_DATA = 0x80040229L;
  744. const LONG CDO_E_PROP_NONHEADER = 0x8004022AL;
  745. const LONG CDO_E_INVALID_CHARSET = 0x8004022BL;
  746. const LONG CDO_E_ADOSTREAM_NOT_BOUND = 0x8004022CL;
  747. const LONG CDO_E_CONTENTPROPXML_NOT_FOUND = 0x8004022DL;
  748. const LONG CDO_E_CONTENTPROPXML_WRONG_CHARSET = 0x8004022EL;
  749. const LONG CDO_E_CONTENTPROPXML_PARSE_FAILED = 0x8004022FL;
  750. const LONG CDO_E_CONTENTPROPXML_CONVERT_FAILED = 0x80040230L;
  751. const LONG CDO_E_NO_DIRECTORIES_SPECIFIED = 0x80040231L;
  752. const LONG CDO_E_DIRECTORIES_UNREACHABLE = 0x80040232L;
  753. const LONG CDO_E_BAD_SENDER = 0x80040233L;
  754. const LONG CDO_E_SELF_BINDING = 0x80040234L;
  755. const LONG CDO_E_ARGUMENT1 = 0x80044000L;
  756. const LONG CDO_E_ARGUMENT2 = 0x80044001L;
  757. const LONG CDO_E_ARGUMENT3 = 0x80044002L;
  758. const LONG CDO_E_ARGUMENT4 = 0x80044003L;
  759. const LONG CDO_E_ARGUMENT5 = 0x80044004L;
  760. const LONG CDO_E_NOT_FOUND = 0x800CCE05L;
  761. const LONG CDO_E_INVALID_ENCODING_TYPE = 0x800CCE1DL;
  762. };
  763. interface IBodyParts;
  764. interface IMessages;
  765. [ uuid(CD000001-8B95-11D1-82DB-00C04FB1625D), helpstring("Defines an object used to manage or create a complete message"), helpcontext(0x00000010) ] coclass Message
  766. {
  767. [default] interface IMessage;
  768. interface IDataSource;
  769. interface IBodyPart;
  770. };
  771. [ uuid(CD000002-8B95-11D1-82DB-00C04FB1625D), helpstring("Defines an object used to store configuration information for CDO objects"), helpcontext(0x00000012) ] coclass Configuration
  772. {
  773. [default] interface IConfiguration;
  774. };
  775. [ uuid(CD000004-8B95-11D1-82DB-00C04FB1625D), helpstring("Defines an object used to access messages on the file system"), helpcontext(0x00000011) ] coclass DropDirectory
  776. {
  777. [default] interface IDropDirectory;
  778. };
  779. [ uuid(CD000008-8B95-11D1-82DB-00C04FB1625D), helpstring("SMTPConnector Class"), hidden ] coclass SMTPConnector
  780. {
  781. [default] interface ISMTPScriptConnector;
  782. [default,source] interface ISMTPOnArrival;
  783. };
  784. [ uuid(CD000011-8B95-11D1-82DB-00C04FB1625D), helpstring("NNTPEarlyConnector Class"), hidden ] coclass NNTPEarlyConnector
  785. {
  786. [default] interface INNTPEarlyScriptConnector;
  787. [default,source] interface INNTPOnPostEarly;
  788. };
  789. [ uuid(CD000009-8B95-11D1-82DB-00C04FB1625D), helpstring("NNTPPostConnector Class"), hidden ] coclass NNTPPostConnector
  790. {
  791. [default] interface INNTPPostScriptConnector;
  792. [default,source] interface INNTPOnPost;
  793. };
  794. [ uuid(CD000010-8B95-11D1-82DB-00C04FB1625D), helpstring("NNTPFinalConnector Class"), hidden ] coclass NNTPFinalConnector
  795. {
  796. [default] interface INNTPFinalScriptConnector;
  797. [default,source] interface INNTPOnPostFinal;
  798. };
  799. [
  800. object,
  801. uuid(CD0ff000-8B95-11D1-82DB-00C04FB1625D),
  802. pointer_default(unique)
  803. ]
  804. interface IGetInterface : IUnknown
  805. {
  806. HRESULT GetInterface(
  807. [in] BSTR Interface,
  808. [out, retval] IDispatch** ppUnknown);
  809. HRESULT GetInterfaceInner(
  810. [in] BSTR Interface,
  811. [out, retval] IDispatch** ppUnknown);
  812. };
  813. };