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.

2030 lines
74 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8472.0 (eb7ca86c).
  2. //
  3. // cdosys.tlh
  4. //
  5. // C++ source equivalent of Win32 type library cdosys.dll
  6. // compiler-generated file created 02/10/00 at 10:49:05 - DO NOT EDIT!
  7. //
  8. // Cross-referenced type libraries:
  9. //
  10. // #import "C:\Program Files\Common Files\system\ado\msado15.dll"
  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. struct __declspec(uuid("cd0ff000-8b95-11d1-82db-00c04fb1625d"))
  56. /* interface */ IGetInterface;
  57. //
  58. // Smart pointer typedef declarations
  59. //
  60. _COM_SMARTPTR_TYPEDEF(IBodyParts, __uuidof(IBodyParts));
  61. _COM_SMARTPTR_TYPEDEF(IBodyPart, __uuidof(IBodyPart));
  62. _COM_SMARTPTR_TYPEDEF(IDataSource, __uuidof(IDataSource));
  63. _COM_SMARTPTR_TYPEDEF(IMessages, __uuidof(IMessages));
  64. _COM_SMARTPTR_TYPEDEF(IMessage, __uuidof(IMessage));
  65. _COM_SMARTPTR_TYPEDEF(IConfiguration, __uuidof(IConfiguration));
  66. _COM_SMARTPTR_TYPEDEF(IDropDirectory, __uuidof(IDropDirectory));
  67. _COM_SMARTPTR_TYPEDEF(ISMTPScriptConnector, __uuidof(ISMTPScriptConnector));
  68. _COM_SMARTPTR_TYPEDEF(ISMTPOnArrival, __uuidof(ISMTPOnArrival));
  69. _COM_SMARTPTR_TYPEDEF(INNTPEarlyScriptConnector, __uuidof(INNTPEarlyScriptConnector));
  70. _COM_SMARTPTR_TYPEDEF(INNTPOnPostEarly, __uuidof(INNTPOnPostEarly));
  71. _COM_SMARTPTR_TYPEDEF(INNTPPostScriptConnector, __uuidof(INNTPPostScriptConnector));
  72. _COM_SMARTPTR_TYPEDEF(INNTPOnPost, __uuidof(INNTPOnPost));
  73. _COM_SMARTPTR_TYPEDEF(INNTPFinalScriptConnector, __uuidof(INNTPFinalScriptConnector));
  74. _COM_SMARTPTR_TYPEDEF(INNTPOnPostFinal, __uuidof(INNTPOnPostFinal));
  75. _COM_SMARTPTR_TYPEDEF(IGetInterface, __uuidof(IGetInterface));
  76. //
  77. // Type library items
  78. //
  79. enum CdoConfigSource
  80. {
  81. cdoDefaults = -1,
  82. cdoIIS = 1,
  83. cdoOutlookExpress = 2
  84. };
  85. enum CdoDSNOptions
  86. {
  87. cdoDSNDefault = 0,
  88. cdoDSNNever = 1,
  89. cdoDSNFailure = 2,
  90. cdoDSNSuccess = 4,
  91. cdoDSNDelay = 8,
  92. cdoDSNSuccessFailOrDelay = 14
  93. };
  94. enum CdoEventStatus
  95. {
  96. cdoRunNextSink = 0,
  97. cdoSkipRemainingSinks = 1
  98. };
  99. enum cdoImportanceValues
  100. {
  101. cdoLow = 0,
  102. cdoNormal = 1,
  103. cdoHigh = 2
  104. };
  105. enum CdoMessageStat
  106. {
  107. cdoStatSuccess = 0,
  108. cdoStatAbortDelivery = 2,
  109. cdoStatBadMail = 3
  110. };
  111. enum CdoMHTMLFlags
  112. {
  113. cdoSuppressNone = 0,
  114. cdoSuppressImages = 1,
  115. cdoSuppressBGSounds = 2,
  116. cdoSuppressFrames = 4,
  117. cdoSuppressObjects = 8,
  118. cdoSuppressStyleSheets = 16,
  119. cdoSuppressAll = 31
  120. };
  121. enum CdoNNTPProcessingField
  122. {
  123. cdoPostMessage = 1,
  124. cdoProcessControl = 2,
  125. cdoProcessModerator = 4
  126. };
  127. enum CdoPostUsing
  128. {
  129. cdoPostUsingPickup = 1,
  130. cdoPostUsingPort = 2
  131. };
  132. enum cdoPriorityValues
  133. {
  134. cdoPriorityNonUrgent = -1,
  135. cdoPriorityNormal = 0,
  136. cdoPriorityUrgent = 1
  137. };
  138. enum CdoProtocolsAuthentication
  139. {
  140. cdoAnonymous = 0,
  141. cdoBasic = 1,
  142. cdoNTLM = 2
  143. };
  144. enum CdoReferenceType
  145. {
  146. cdoRefTypeId = 0,
  147. cdoRefTypeLocation = 1
  148. };
  149. enum CdoSendUsing
  150. {
  151. cdoSendUsingPickup = 1,
  152. cdoSendUsingPort = 2
  153. };
  154. enum cdoSensitivityValues
  155. {
  156. cdoSensitivityNone = 0,
  157. cdoPersonal = 1,
  158. cdoPrivate = 2,
  159. cdoCompanyConfidential = 3
  160. };
  161. enum CdoTimeZoneId
  162. {
  163. cdoUTC = 0,
  164. cdoGMT = 1,
  165. cdoLisbon = 2,
  166. cdoParis = 3,
  167. cdoBerlin = 4,
  168. cdoEasternEurope = 5,
  169. cdoPrague = 6,
  170. cdoAthens = 7,
  171. cdoBrasilia = 8,
  172. cdoAtlanticCanada = 9,
  173. cdoEastern = 10,
  174. cdoCentral = 11,
  175. cdoMountain = 12,
  176. cdoPacific = 13,
  177. cdoAlaska = 14,
  178. cdoHawaii = 15,
  179. cdoMidwayIsland = 16,
  180. cdoWellington = 17,
  181. cdoBrisbane = 18,
  182. cdoAdelaide = 19,
  183. cdoTokyo = 20,
  184. cdoHongKong = 21,
  185. cdoBangkok = 22,
  186. cdoBombay = 23,
  187. cdoAbuDhabi = 24,
  188. cdoTehran = 25,
  189. cdoBaghdad = 26,
  190. cdoIsrael = 27,
  191. cdoNewfoundland = 28,
  192. cdoAzores = 29,
  193. cdoMidAtlantic = 30,
  194. cdoMonrovia = 31,
  195. cdoBuenosAires = 32,
  196. cdoCaracas = 33,
  197. cdoIndiana = 34,
  198. cdoBogota = 35,
  199. cdoSaskatchewan = 36,
  200. cdoMexicoCity = 37,
  201. cdoArizona = 38,
  202. cdoEniwetok = 39,
  203. cdoFiji = 40,
  204. cdoMagadan = 41,
  205. cdoHobart = 42,
  206. cdoGuam = 43,
  207. cdoDarwin = 44,
  208. cdoBeijing = 45,
  209. cdoAlmaty = 46,
  210. cdoIslamabad = 47,
  211. cdoKabul = 48,
  212. cdoCairo = 49,
  213. cdoHarare = 50,
  214. cdoMoscow = 51,
  215. cdoInvalidTimeZone = 52
  216. };
  217. const BSTR cdoTimeZoneIDURN = (unsigned short*) L"urn:schemas:calendar:timezoneid";
  218. const BSTR cdoBIG5 = (unsigned short*) L"big5";
  219. const BSTR cdoEUC_JP = (unsigned short*) L"euc-jp";
  220. const BSTR cdoEUC_KR = (unsigned short*) L"euc-kr";
  221. const BSTR cdoGB2312 = (unsigned short*) L"gb2312";
  222. const BSTR cdoISO_2022_JP = (unsigned short*) L"iso-2022-jp";
  223. const BSTR cdoISO_2022_KR = (unsigned short*) L"iso-2022-kr";
  224. const BSTR cdoISO_8859_1 = (unsigned short*) L"iso-8859-1";
  225. const BSTR cdoISO_8859_2 = (unsigned short*) L"iso-8859-2";
  226. const BSTR cdoISO_8859_3 = (unsigned short*) L"iso-8859-3";
  227. const BSTR cdoISO_8859_4 = (unsigned short*) L"iso-8859-4";
  228. const BSTR cdoISO_8859_5 = (unsigned short*) L"iso-8859-5";
  229. const BSTR cdoISO_8859_6 = (unsigned short*) L"iso-8859-6";
  230. const BSTR cdoISO_8859_7 = (unsigned short*) L"iso-8859-7";
  231. const BSTR cdoISO_8859_8 = (unsigned short*) L"iso-8859-8";
  232. const BSTR cdoISO_8859_9 = (unsigned short*) L"iso-8859-9";
  233. const BSTR cdoKOI8_R = (unsigned short*) L"koi8-r";
  234. const BSTR cdoShift_JIS = (unsigned short*) L"shift-jis";
  235. const BSTR cdoUS_ASCII = (unsigned short*) L"us-ascii";
  236. const BSTR cdoUTF_7 = (unsigned short*) L"utf-7";
  237. const BSTR cdoUTF_8 = (unsigned short*) L"utf-8";
  238. const BSTR cdoAutoPromoteBodyParts = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/autopromotebodyparts";
  239. const BSTR cdoFlushBuffersOnWrite = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/flushbuffersonwrite";
  240. const BSTR cdoHTTPCookies = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/httpcookies";
  241. const BSTR cdoLanguageCode = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/languagecode";
  242. const BSTR cdoNNTPAccountName = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpaccountname";
  243. const BSTR cdoNNTPAuthenticate = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpauthenticate";
  244. const BSTR cdoNNTPConnectionTimeout = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpconnectiontimeout";
  245. const BSTR cdoNNTPServer = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpserver";
  246. const BSTR cdoNNTPServerPickupDirectory = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpserverpickupdirectory";
  247. const BSTR cdoNNTPServerPort = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpserverport";
  248. const BSTR cdoNNTPUseSSL = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/nntpusessl";
  249. const BSTR cdoPostEmailAddress = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/postemailaddress";
  250. const BSTR cdoPostPassword = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/postpassword";
  251. const BSTR cdoPostUserName = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/postusername";
  252. const BSTR cdoPostUserReplyEmailAddress = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/postuserreplyemailaddress";
  253. const BSTR cdoPostUsingMethod = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/postusing";
  254. const BSTR cdoSaveSentItems = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/savesentitems";
  255. const BSTR cdoSendEmailAddress = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/sendemailaddress";
  256. const BSTR cdoSendPassword = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/sendpassword";
  257. const BSTR cdoSendUserName = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/sendusername";
  258. const BSTR cdoSendUserReplyEmailAddress = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/senduserreplyemailaddress";
  259. const BSTR cdoSendUsingMethod = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/sendusing";
  260. const BSTR cdoSMTPAccountName = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpaccountname";
  261. const BSTR cdoSMTPAuthenticate = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";
  262. const BSTR cdoSMTPConnectionTimeout = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout";
  263. const BSTR cdoSMTPServer = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpserver";
  264. const BSTR cdoSMTPServerPickupDirectory = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory";
  265. const BSTR cdoSMTPServerPort = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpserverport";
  266. const BSTR cdoSMTPUseSSL = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/smtpusessl";
  267. const BSTR cdoURLGetLatestVersion = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/urlgetlatestversion";
  268. const BSTR cdoURLProxyBypass = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/urlproxybypass";
  269. const BSTR cdoURLProxyServer = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/urlproxyserver";
  270. const BSTR cdoUseMessageResponseText = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext";
  271. const BSTR cdoGif = (unsigned short*) L"image/gif";
  272. const BSTR cdoJpeg = (unsigned short*) L"image/jpeg";
  273. const BSTR cdoMessageExternalBody = (unsigned short*) L"message/external-body";
  274. const BSTR cdoMessagePartial = (unsigned short*) L"message/partial";
  275. const BSTR cdoMessageRFC822 = (unsigned short*) L"message/rfc822";
  276. const BSTR cdoMultipartAlternative = (unsigned short*) L"multipart/alternative";
  277. const BSTR cdoMultipartDigest = (unsigned short*) L"multipart/digest";
  278. const BSTR cdoMultipartMixed = (unsigned short*) L"multipart/mixed";
  279. const BSTR cdoMultipartRelated = (unsigned short*) L"multipart/related";
  280. const BSTR cdoTextHTML = (unsigned short*) L"text/html";
  281. const BSTR cdoTextPlain = (unsigned short*) L"text/plain";
  282. const BSTR cdo7bit = (unsigned short*) L"7bit";
  283. const BSTR cdo8bit = (unsigned short*) L"8bit";
  284. const BSTR cdoBase64 = (unsigned short*) L"base64";
  285. const BSTR cdoBinary = (unsigned short*) L"binary";
  286. const BSTR cdoMacBinHex40 = (unsigned short*) L"mac-binhex40";
  287. const BSTR cdoQuotedPrintable = (unsigned short*) L"quoted-printable";
  288. const BSTR cdoUuencode = (unsigned short*) L"uuencode";
  289. const BSTR cdoSensitivity = (unsigned short*) L"http://schemas.microsoft.com/exchange/sensitivity";
  290. const BSTR cdoAttachmentFilename = (unsigned short*) L"urn:schemas:httpmail:attachmentfilename";
  291. const BSTR cdoBcc = (unsigned short*) L"urn:schemas:httpmail:bcc";
  292. const BSTR cdoCc = (unsigned short*) L"urn:schemas:httpmail:cc";
  293. const BSTR cdoContentDispositionType = (unsigned short*) L"urn:schemas:httpmail:content-disposition-type";
  294. const BSTR cdoContentMediaType = (unsigned short*) L"urn:schemas:httpmail:content-media-type";
  295. const BSTR cdoDate = (unsigned short*) L"urn:schemas:httpmail:date";
  296. const BSTR cdoDateReceived = (unsigned short*) L"urn:schemas:httpmail:datereceived";
  297. const BSTR cdoFrom = (unsigned short*) L"urn:schemas:httpmail:from";
  298. const BSTR cdoHasAttachment = (unsigned short*) L"urn:schemas:httpmail:hasattachment";
  299. const BSTR cdoHTMLDescription = (unsigned short*) L"urn:schemas:httpmail:htmldescription";
  300. const BSTR cdoImportance = (unsigned short*) L"urn:schemas:httpmail:importance";
  301. const BSTR cdoNormalizedSubject = (unsigned short*) L"urn:schemas:httpmail:normalizedsubject";
  302. const BSTR cdoPriority = (unsigned short*) L"urn:schemas:httpmail:priority";
  303. const BSTR cdoReplyTo = (unsigned short*) L"urn:schemas:httpmail:reply-to";
  304. const BSTR cdoSender = (unsigned short*) L"urn:schemas:httpmail:sender";
  305. const BSTR cdoSubject = (unsigned short*) L"urn:schemas:httpmail:subject";
  306. const BSTR cdoTextDescription = (unsigned short*) L"urn:schemas:httpmail:textdescription";
  307. const BSTR cdoThreadTopic = (unsigned short*) L"urn:schemas:httpmail:thread-topic";
  308. const BSTR cdoTo = (unsigned short*) L"urn:schemas:httpmail:to";
  309. const BSTR cdoAdoStream = (unsigned short*) L"_Stream";
  310. const BSTR cdoIBodyPart = (unsigned short*) L"IBodyPart";
  311. const BSTR cdoIConfiguration = (unsigned short*) L"IConfiguration";
  312. const BSTR cdoIDataSource = (unsigned short*) L"IDataSource";
  313. const BSTR cdoIMessage = (unsigned short*) L"IMessage";
  314. const BSTR cdoIStream = (unsigned short*) L"IStream";
  315. const BSTR cdoApproved = (unsigned short*) L"urn:schemas:mailheader:approved";
  316. const BSTR cdoComment = (unsigned short*) L"urn:schemas:mailheader:comment";
  317. const BSTR cdoContentBase = (unsigned short*) L"urn:schemas:mailheader:content-base";
  318. const BSTR cdoContentDescription = (unsigned short*) L"urn:schemas:mailheader:content-description";
  319. const BSTR cdoContentDisposition = (unsigned short*) L"urn:schemas:mailheader:content-disposition";
  320. const BSTR cdoContentId = (unsigned short*) L"urn:schemas:mailheader:content-id";
  321. const BSTR cdoContentLanguage = (unsigned short*) L"urn:schemas:mailheader:content-language";
  322. const BSTR cdoContentLocation = (unsigned short*) L"urn:schemas:mailheader:content-location";
  323. const BSTR cdoContentTransferEncoding = (unsigned short*) L"urn:schemas:mailheader:content-transfer-encoding";
  324. const BSTR cdoContentType = (unsigned short*) L"urn:schemas:mailheader:content-type";
  325. const BSTR cdoControl = (unsigned short*) L"urn:schemas:mailheader:control";
  326. const BSTR cdoDisposition = (unsigned short*) L"urn:schemas:mailheader:disposition";
  327. const BSTR cdoDispositionNotificationTo = (unsigned short*) L"urn:schemas:mailheader:disposition-notification-to";
  328. const BSTR cdoDistribution = (unsigned short*) L"urn:schemas:mailheader:distribution";
  329. const BSTR cdoExpires = (unsigned short*) L"urn:schemas:mailheader:expires";
  330. const BSTR cdoFollowupTo = (unsigned short*) L"urn:schemas:mailheader:followup-to";
  331. const BSTR cdoInReplyTo = (unsigned short*) L"urn:schemas:mailheader:in-reply-to";
  332. const BSTR cdoLines = (unsigned short*) L"urn:schemas:mailheader:lines";
  333. const BSTR cdoMessageId = (unsigned short*) L"urn:schemas:mailheader:message-id";
  334. const BSTR cdoMIMEVersion = (unsigned short*) L"urn:schemas:mailheader:mime-version";
  335. const BSTR cdoNewsgroups = (unsigned short*) L"urn:schemas:mailheader:newsgroups";
  336. const BSTR cdoOrganization = (unsigned short*) L"urn:schemas:mailheader:organization";
  337. const BSTR cdoOriginalRecipient = (unsigned short*) L"urn:schemas:mailheader:original-recipient";
  338. const BSTR cdoPath = (unsigned short*) L"urn:schemas:mailheader:path";
  339. const BSTR cdoPostingVersion = (unsigned short*) L"urn:schemas:mailheader:posting-version";
  340. const BSTR cdoReceived = (unsigned short*) L"urn:schemas:mailheader:received";
  341. const BSTR cdoReferences = (unsigned short*) L"urn:schemas:mailheader:references";
  342. const BSTR cdoRelayVersion = (unsigned short*) L"urn:schemas:mailheader:relay-version";
  343. const BSTR cdoReturnPath = (unsigned short*) L"urn:schemas:mailheader:return-path";
  344. const BSTR cdoReturnReceiptTo = (unsigned short*) L"urn:schemas:mailheader:return-receipt-to";
  345. const BSTR cdoSummary = (unsigned short*) L"urn:schemas:mailheader:summary";
  346. const BSTR cdoThreadIndex = (unsigned short*) L"urn:schemas:mailheader:thread-index";
  347. const BSTR cdoXMailer = (unsigned short*) L"urn:schemas:mailheader:x-mailer";
  348. const BSTR cdoXref = (unsigned short*) L"urn:schemas:mailheader:xref";
  349. const BSTR cdoXUnsent = (unsigned short*) L"urn:schemas:mailheader:x-unsent";
  350. const BSTR cdoNSConfiguration = (unsigned short*) L"http://schemas.microsoft.com/cdo/configuration/";
  351. const BSTR cdoNSContacts = (unsigned short*) L"urn:schemas:contacts:";
  352. const BSTR cdoNSHTTPMail = (unsigned short*) L"urn:schemas:httpmail:";
  353. const BSTR cdoNSMailHeader = (unsigned short*) L"urn:schemas:mailheader:";
  354. const BSTR cdoNSNNTPEnvelope = (unsigned short*) L"http://schemas.microsoft.com/cdo/nntpenvelope/";
  355. const BSTR cdoNSSMTPEnvelope = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/";
  356. const BSTR cdoNewsgroupList = (unsigned short*) L"http://schemas.microsoft.com/cdo/nntpenvelope/newsgrouplist";
  357. const BSTR cdoNNTPProcessing = (unsigned short*) L"http://schemas.microsoft.com/cdo/nntpenvelope/nntpprocessing";
  358. const BSTR cdoArrivalTime = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/arrivaltime";
  359. const BSTR cdoClientIPAddress = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/clientipaddress";
  360. const BSTR cdoMessageStatus = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/messagestatus";
  361. const BSTR cdoPickupFileName = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/pickupfilename";
  362. const BSTR cdoRecipientList = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist";
  363. const BSTR cdoSenderEmailAddress = (unsigned short*) L"http://schemas.microsoft.com/cdo/smtpenvelope/senderemailaddress";
  364. const long CDO_E_UNCAUGHT_EXCEPTION = -2147220991;
  365. const long CDO_E_NOT_OPENED = -2147220990;
  366. const long CDO_E_UNSUPPORTED_DATASOURCE = -2147220989;
  367. const long CDO_E_INVALID_PROPERTYNAME = -2147220988;
  368. const long CDO_E_PROP_UNSUPPORTED = -2147220987;
  369. const long CDO_E_INACTIVE = -2147220986;
  370. const long CDO_E_NO_SUPPORT_FOR_OBJECTS = -2147220985;
  371. const long CDO_E_NOT_AVAILABLE = -2147220984;
  372. const long CDO_E_NO_DEFAULT_DROP_DIR = -2147220983;
  373. const long CDO_E_SMTP_SERVER_REQUIRED = -2147220982;
  374. const long CDO_E_NNTP_SERVER_REQUIRED = -2147220981;
  375. const long CDO_E_RECIPIENT_MISSING = -2147220980;
  376. const long CDO_E_FROM_MISSING = -2147220979;
  377. const long CDO_E_SENDER_REJECTED = -2147220978;
  378. const long CDO_E_RECIPIENTS_REJECTED = -2147220977;
  379. const long CDO_E_NNTP_POST_FAILED = -2147220976;
  380. const long CDO_E_SMTP_SEND_FAILED = -2147220975;
  381. const long CDO_E_CONNECTION_DROPPED = -2147220974;
  382. const long CDO_E_FAILED_TO_CONNECT = -2147220973;
  383. const long CDO_E_INVALID_POST = -2147220972;
  384. const long CDO_E_AUTHENTICATION_FAILURE = -2147220971;
  385. const long CDO_E_INVALID_CONTENT_TYPE = -2147220970;
  386. const long CDO_E_LOGON_FAILURE = -2147220969;
  387. const long CDO_E_HTTP_NOT_FOUND = -2147220968;
  388. const long CDO_E_HTTP_FORBIDDEN = -2147220967;
  389. const long CDO_E_HTTP_FAILED = -2147220966;
  390. const long CDO_E_MULTIPART_NO_DATA = -2147220965;
  391. const long CDO_E_INVALID_ENCODING_FOR_MULTIPART = -2147220964;
  392. const long CDO_E_PROP_NOT_FOUND = -2147220962;
  393. const long CDO_E_INVALID_SEND_OPTION = -2147220960;
  394. const long CDO_E_INVALID_POST_OPTION = -2147220959;
  395. const long CDO_E_NO_PICKUP_DIR = -2147220958;
  396. const long CDO_E_NOT_ALL_DELETED = -2147220957;
  397. const long CDO_E_PROP_READONLY = -2147220953;
  398. const long CDO_E_PROP_CANNOT_DELETE = -2147220952;
  399. const long CDO_E_BAD_DATA = -2147220951;
  400. const long CDO_E_PROP_NONHEADER = -2147220950;
  401. const long CDO_E_INVALID_CHARSET = -2147220949;
  402. const long CDO_E_ADOSTREAM_NOT_BOUND = -2147220948;
  403. const long CDO_E_CONTENTPROPXML_NOT_FOUND = -2147220947;
  404. const long CDO_E_CONTENTPROPXML_WRONG_CHARSET = -2147220946;
  405. const long CDO_E_CONTENTPROPXML_PARSE_FAILED = -2147220945;
  406. const long CDO_E_CONTENTPROPXML_CONVERT_FAILED = -2147220944;
  407. const long CDO_E_NO_DIRECTORIES_SPECIFIED = -2147220943;
  408. const long CDO_E_DIRECTORIES_UNREACHABLE = -2147220942;
  409. const long CDO_E_BAD_SENDER = -2147220941;
  410. const long CDO_E_SELF_BINDING = -2147220940;
  411. const long CDO_E_ARGUMENT1 = -2147205120;
  412. const long CDO_E_ARGUMENT2 = -2147205119;
  413. const long CDO_E_ARGUMENT3 = -2147205118;
  414. const long CDO_E_ARGUMENT4 = -2147205117;
  415. const long CDO_E_ARGUMENT5 = -2147205116;
  416. const long CDO_E_NOT_FOUND = -2146644475;
  417. const long CDO_E_INVALID_ENCODING_TYPE = -2146644451;
  418. struct __declspec(uuid("cd000023-8b95-11d1-82db-00c04fb1625d"))
  419. IBodyParts : IDispatch
  420. {
  421. //
  422. // Property data
  423. //
  424. __declspec(property(get=GetItem))
  425. IBodyPartPtr Item[];
  426. __declspec(property(get=GetCount))
  427. long Count;
  428. __declspec(property(get=Get_NewEnum))
  429. IUnknownPtr _NewEnum;
  430. //
  431. // Wrapper methods for error-handling
  432. //
  433. long GetCount ( );
  434. IBodyPartPtr GetItem (
  435. long Index );
  436. IUnknownPtr Get_NewEnum ( );
  437. HRESULT Delete (
  438. const _variant_t & varBP );
  439. HRESULT DeleteAll ( );
  440. IBodyPartPtr Add (
  441. long Index );
  442. //
  443. // Raw methods provided by interface
  444. //
  445. virtual HRESULT __stdcall get_Count (
  446. long * varCount ) = 0;
  447. virtual HRESULT __stdcall get_Item (
  448. long Index,
  449. struct IBodyPart * * ppBody ) = 0;
  450. virtual HRESULT __stdcall get__NewEnum (
  451. IUnknown * * retval ) = 0;
  452. virtual HRESULT __stdcall raw_Delete (
  453. VARIANT varBP ) = 0;
  454. virtual HRESULT __stdcall raw_DeleteAll ( ) = 0;
  455. virtual HRESULT __stdcall raw_Add (
  456. long Index,
  457. struct IBodyPart * * ppPart ) = 0;
  458. };
  459. struct __declspec(uuid("cd000021-8b95-11d1-82db-00c04fb1625d"))
  460. IBodyPart : IDispatch
  461. {
  462. //
  463. // Property data
  464. //
  465. __declspec(property(get=GetBodyParts))
  466. IBodyPartsPtr BodyParts;
  467. __declspec(property(get=GetContentTransferEncoding,put=PutContentTransferEncoding))
  468. _bstr_t ContentTransferEncoding;
  469. __declspec(property(get=GetContentMediaType,put=PutContentMediaType))
  470. _bstr_t ContentMediaType;
  471. __declspec(property(get=GetFields))
  472. FieldsPtr Fields;
  473. __declspec(property(get=GetCharset,put=PutCharset))
  474. _bstr_t Charset;
  475. __declspec(property(get=GetFileName))
  476. _bstr_t FileName;
  477. __declspec(property(get=GetDataSource))
  478. IDataSourcePtr DataSource;
  479. __declspec(property(get=GetContentClass,put=PutContentClass))
  480. _bstr_t ContentClass;
  481. __declspec(property(get=GetContentClassName,put=PutContentClassName))
  482. _bstr_t ContentClassName;
  483. __declspec(property(get=GetParent))
  484. IBodyPartPtr Parent;
  485. //
  486. // Wrapper methods for error-handling
  487. //
  488. IBodyPartsPtr GetBodyParts ( );
  489. _bstr_t GetContentTransferEncoding ( );
  490. void PutContentTransferEncoding (
  491. _bstr_t pContentTransferEncoding );
  492. _bstr_t GetContentMediaType ( );
  493. void PutContentMediaType (
  494. _bstr_t pContentMediaType );
  495. FieldsPtr GetFields ( );
  496. _bstr_t GetCharset ( );
  497. void PutCharset (
  498. _bstr_t pCharset );
  499. _bstr_t GetFileName ( );
  500. IDataSourcePtr GetDataSource ( );
  501. _bstr_t GetContentClass ( );
  502. void PutContentClass (
  503. _bstr_t pContentClass );
  504. _bstr_t GetContentClassName ( );
  505. void PutContentClassName (
  506. _bstr_t pContentClassName );
  507. IBodyPartPtr GetParent ( );
  508. IBodyPartPtr AddBodyPart (
  509. long Index );
  510. HRESULT SaveToFile (
  511. _bstr_t FileName );
  512. _StreamPtr GetEncodedContentStream ( );
  513. _StreamPtr GetDecodedContentStream ( );
  514. _StreamPtr GetStream ( );
  515. _bstr_t GetFieldParameter (
  516. _bstr_t FieldName,
  517. _bstr_t Parameter );
  518. IDispatchPtr GetInterface (
  519. _bstr_t Interface );
  520. //
  521. // Raw methods provided by interface
  522. //
  523. virtual HRESULT __stdcall get_BodyParts (
  524. struct IBodyParts * * varBodyParts ) = 0;
  525. virtual HRESULT __stdcall get_ContentTransferEncoding (
  526. BSTR * pContentTransferEncoding ) = 0;
  527. virtual HRESULT __stdcall put_ContentTransferEncoding (
  528. BSTR pContentTransferEncoding ) = 0;
  529. virtual HRESULT __stdcall get_ContentMediaType (
  530. BSTR * pContentMediaType ) = 0;
  531. virtual HRESULT __stdcall put_ContentMediaType (
  532. BSTR pContentMediaType ) = 0;
  533. virtual HRESULT __stdcall get_Fields (
  534. struct Fields * * varFields ) = 0;
  535. virtual HRESULT __stdcall get_Charset (
  536. BSTR * pCharset ) = 0;
  537. virtual HRESULT __stdcall put_Charset (
  538. BSTR pCharset ) = 0;
  539. virtual HRESULT __stdcall get_FileName (
  540. BSTR * varFileName ) = 0;
  541. virtual HRESULT __stdcall get_DataSource (
  542. struct IDataSource * * varDataSource ) = 0;
  543. virtual HRESULT __stdcall get_ContentClass (
  544. BSTR * pContentClass ) = 0;
  545. virtual HRESULT __stdcall put_ContentClass (
  546. BSTR pContentClass ) = 0;
  547. virtual HRESULT __stdcall get_ContentClassName (
  548. BSTR * pContentClassName ) = 0;
  549. virtual HRESULT __stdcall put_ContentClassName (
  550. BSTR pContentClassName ) = 0;
  551. virtual HRESULT __stdcall get_Parent (
  552. struct IBodyPart * * varParent ) = 0;
  553. virtual HRESULT __stdcall raw_AddBodyPart (
  554. long Index,
  555. struct IBodyPart * * ppPart ) = 0;
  556. virtual HRESULT __stdcall raw_SaveToFile (
  557. BSTR FileName ) = 0;
  558. virtual HRESULT __stdcall raw_GetEncodedContentStream (
  559. struct _Stream * * ppStream ) = 0;
  560. virtual HRESULT __stdcall raw_GetDecodedContentStream (
  561. struct _Stream * * ppStream ) = 0;
  562. virtual HRESULT __stdcall raw_GetStream (
  563. struct _Stream * * ppStream ) = 0;
  564. virtual HRESULT __stdcall raw_GetFieldParameter (
  565. BSTR FieldName,
  566. BSTR Parameter,
  567. BSTR * pbstrValue ) = 0;
  568. virtual HRESULT __stdcall raw_GetInterface (
  569. BSTR Interface,
  570. IDispatch * * ppUnknown ) = 0;
  571. };
  572. struct __declspec(uuid("cd000029-8b95-11d1-82db-00c04fb1625d"))
  573. IDataSource : IDispatch
  574. {
  575. //
  576. // Property data
  577. //
  578. __declspec(property(get=GetSourceClass))
  579. _bstr_t SourceClass;
  580. __declspec(property(get=GetSource))
  581. IUnknownPtr Source;
  582. __declspec(property(get=GetIsDirty,put=PutIsDirty))
  583. VARIANT_BOOL IsDirty;
  584. __declspec(property(get=GetSourceURL))
  585. _bstr_t SourceURL;
  586. __declspec(property(get=GetActiveConnection))
  587. _ConnectionPtr ActiveConnection;
  588. //
  589. // Wrapper methods for error-handling
  590. //
  591. _bstr_t GetSourceClass ( );
  592. IUnknownPtr GetSource ( );
  593. VARIANT_BOOL GetIsDirty ( );
  594. void PutIsDirty (
  595. VARIANT_BOOL pIsDirty );
  596. _bstr_t GetSourceURL ( );
  597. _ConnectionPtr GetActiveConnection ( );
  598. HRESULT SaveToObject (
  599. IUnknown * Source,
  600. _bstr_t InterfaceName );
  601. HRESULT OpenObject (
  602. IUnknown * Source,
  603. _bstr_t InterfaceName );
  604. HRESULT SaveTo (
  605. _bstr_t SourceURL,
  606. IDispatch * ActiveConnection,
  607. enum ConnectModeEnum Mode,
  608. enum RecordCreateOptionsEnum CreateOptions,
  609. enum RecordOpenOptionsEnum Options,
  610. _bstr_t UserName,
  611. _bstr_t Password );
  612. HRESULT Open (
  613. _bstr_t SourceURL,
  614. IDispatch * ActiveConnection,
  615. enum ConnectModeEnum Mode,
  616. enum RecordCreateOptionsEnum CreateOptions,
  617. enum RecordOpenOptionsEnum Options,
  618. _bstr_t UserName,
  619. _bstr_t Password );
  620. HRESULT Save ( );
  621. HRESULT SaveToContainer (
  622. _bstr_t ContainerURL,
  623. IDispatch * ActiveConnection,
  624. enum ConnectModeEnum Mode,
  625. enum RecordCreateOptionsEnum CreateOptions,
  626. enum RecordOpenOptionsEnum Options,
  627. _bstr_t UserName,
  628. _bstr_t Password );
  629. //
  630. // Raw methods provided by interface
  631. //
  632. virtual HRESULT __stdcall get_SourceClass (
  633. BSTR * varSourceClass ) = 0;
  634. virtual HRESULT __stdcall get_Source (
  635. IUnknown * * varSource ) = 0;
  636. virtual HRESULT __stdcall get_IsDirty (
  637. VARIANT_BOOL * pIsDirty ) = 0;
  638. virtual HRESULT __stdcall put_IsDirty (
  639. VARIANT_BOOL pIsDirty ) = 0;
  640. virtual HRESULT __stdcall get_SourceURL (
  641. BSTR * varSourceURL ) = 0;
  642. virtual HRESULT __stdcall get_ActiveConnection (
  643. struct _Connection * * varActiveConnection ) = 0;
  644. virtual HRESULT __stdcall raw_SaveToObject (
  645. IUnknown * Source,
  646. BSTR InterfaceName ) = 0;
  647. virtual HRESULT __stdcall raw_OpenObject (
  648. IUnknown * Source,
  649. BSTR InterfaceName ) = 0;
  650. virtual HRESULT __stdcall raw_SaveTo (
  651. BSTR SourceURL,
  652. IDispatch * ActiveConnection,
  653. enum ConnectModeEnum Mode,
  654. enum RecordCreateOptionsEnum CreateOptions,
  655. enum RecordOpenOptionsEnum Options,
  656. BSTR UserName,
  657. BSTR Password ) = 0;
  658. virtual HRESULT __stdcall raw_Open (
  659. BSTR SourceURL,
  660. IDispatch * ActiveConnection,
  661. enum ConnectModeEnum Mode,
  662. enum RecordCreateOptionsEnum CreateOptions,
  663. enum RecordOpenOptionsEnum Options,
  664. BSTR UserName,
  665. BSTR Password ) = 0;
  666. virtual HRESULT __stdcall raw_Save ( ) = 0;
  667. virtual HRESULT __stdcall raw_SaveToContainer (
  668. BSTR ContainerURL,
  669. IDispatch * ActiveConnection,
  670. enum ConnectModeEnum Mode,
  671. enum RecordCreateOptionsEnum CreateOptions,
  672. enum RecordOpenOptionsEnum Options,
  673. BSTR UserName,
  674. BSTR Password ) = 0;
  675. };
  676. struct __declspec(uuid("cd000025-8b95-11d1-82db-00c04fb1625d"))
  677. IMessages : IDispatch
  678. {
  679. //
  680. // Property data
  681. //
  682. __declspec(property(get=GetCount))
  683. long Count;
  684. __declspec(property(get=Get_NewEnum))
  685. IUnknownPtr _NewEnum;
  686. //
  687. // Wrapper methods for error-handling
  688. //
  689. IMessagePtr GetItem (
  690. long Index );
  691. long GetCount ( );
  692. HRESULT Delete (
  693. long Index );
  694. HRESULT DeleteAll ( );
  695. IUnknownPtr Get_NewEnum ( );
  696. _bstr_t GetFileName (
  697. const _variant_t & var );
  698. //
  699. // Raw methods provided by interface
  700. //
  701. virtual HRESULT __stdcall get_Item (
  702. long Index,
  703. struct IMessage * * ppMessage ) = 0;
  704. virtual HRESULT __stdcall get_Count (
  705. long * varCount ) = 0;
  706. virtual HRESULT __stdcall raw_Delete (
  707. long Index ) = 0;
  708. virtual HRESULT __stdcall raw_DeleteAll ( ) = 0;
  709. virtual HRESULT __stdcall get__NewEnum (
  710. IUnknown * * retval ) = 0;
  711. virtual HRESULT __stdcall get_FileName (
  712. VARIANT var,
  713. BSTR * FileName ) = 0;
  714. };
  715. struct __declspec(uuid("cd000020-8b95-11d1-82db-00c04fb1625d"))
  716. IMessage : IDispatch
  717. {
  718. //
  719. // Property data
  720. //
  721. __declspec(property(get=GetBodyPart))
  722. IBodyPartPtr BodyPart;
  723. __declspec(property(get=GetDataSource))
  724. IDataSourcePtr DataSource;
  725. __declspec(property(get=GetFields))
  726. FieldsPtr Fields;
  727. __declspec(property(get=GetMDNRequested,put=PutMDNRequested))
  728. VARIANT_BOOL MDNRequested;
  729. __declspec(property(get=GetBCC,put=PutBCC))
  730. _bstr_t BCC;
  731. __declspec(property(get=GetCC,put=PutCC))
  732. _bstr_t CC;
  733. __declspec(property(get=GetFollowUpTo,put=PutFollowUpTo))
  734. _bstr_t FollowUpTo;
  735. __declspec(property(get=GetFrom,put=PutFrom))
  736. _bstr_t From;
  737. __declspec(property(get=GetKeywords,put=PutKeywords))
  738. _bstr_t Keywords;
  739. __declspec(property(get=GetMimeFormatted,put=PutMimeFormatted))
  740. VARIANT_BOOL MimeFormatted;
  741. __declspec(property(get=GetNewsgroups,put=PutNewsgroups))
  742. _bstr_t Newsgroups;
  743. __declspec(property(get=GetOrganization,put=PutOrganization))
  744. _bstr_t Organization;
  745. __declspec(property(get=GetReceivedTime))
  746. DATE ReceivedTime;
  747. __declspec(property(get=GetReplyTo,put=PutReplyTo))
  748. _bstr_t ReplyTo;
  749. __declspec(property(get=GetDSNOptions,put=PutDSNOptions))
  750. enum CdoDSNOptions DSNOptions;
  751. __declspec(property(get=GetSentOn))
  752. DATE SentOn;
  753. __declspec(property(get=GetSubject,put=PutSubject))
  754. _bstr_t Subject;
  755. __declspec(property(get=GetTo,put=PutTo))
  756. _bstr_t To;
  757. __declspec(property(get=GetTextBody,put=PutTextBody))
  758. _bstr_t TextBody;
  759. __declspec(property(get=GetHTMLBody,put=PutHTMLBody))
  760. _bstr_t HTMLBody;
  761. __declspec(property(get=GetAttachments))
  762. IBodyPartsPtr Attachments;
  763. __declspec(property(get=GetSender,put=PutSender))
  764. _bstr_t Sender;
  765. __declspec(property(get=GetConfiguration,put=PutRefConfiguration))
  766. IConfigurationPtr Configuration;
  767. __declspec(property(get=GetAutoGenerateTextBody,put=PutAutoGenerateTextBody))
  768. VARIANT_BOOL AutoGenerateTextBody;
  769. __declspec(property(get=GetEnvelopeFields))
  770. FieldsPtr EnvelopeFields;
  771. __declspec(property(get=GetTextBodyPart))
  772. IBodyPartPtr TextBodyPart;
  773. __declspec(property(get=GetHTMLBodyPart))
  774. IBodyPartPtr HTMLBodyPart;
  775. //
  776. // Wrapper methods for error-handling
  777. //
  778. _bstr_t GetBCC ( );
  779. void PutBCC (
  780. _bstr_t pBCC );
  781. _bstr_t GetCC ( );
  782. void PutCC (
  783. _bstr_t pCC );
  784. _bstr_t GetFollowUpTo ( );
  785. void PutFollowUpTo (
  786. _bstr_t pFollowUpTo );
  787. _bstr_t GetFrom ( );
  788. void PutFrom (
  789. _bstr_t pFrom );
  790. _bstr_t GetKeywords ( );
  791. void PutKeywords (
  792. _bstr_t pKeywords );
  793. VARIANT_BOOL GetMimeFormatted ( );
  794. void PutMimeFormatted (
  795. VARIANT_BOOL pMimeFormatted );
  796. _bstr_t GetNewsgroups ( );
  797. void PutNewsgroups (
  798. _bstr_t pNewsgroups );
  799. _bstr_t GetOrganization ( );
  800. void PutOrganization (
  801. _bstr_t pOrganization );
  802. DATE GetReceivedTime ( );
  803. _bstr_t GetReplyTo ( );
  804. void PutReplyTo (
  805. _bstr_t pReplyTo );
  806. enum CdoDSNOptions GetDSNOptions ( );
  807. void PutDSNOptions (
  808. enum CdoDSNOptions pDSNOptions );
  809. DATE GetSentOn ( );
  810. _bstr_t GetSubject ( );
  811. void PutSubject (
  812. _bstr_t pSubject );
  813. _bstr_t GetTo ( );
  814. void PutTo (
  815. _bstr_t pTo );
  816. _bstr_t GetTextBody ( );
  817. void PutTextBody (
  818. _bstr_t pTextBody );
  819. _bstr_t GetHTMLBody ( );
  820. void PutHTMLBody (
  821. _bstr_t pHTMLBody );
  822. IBodyPartsPtr GetAttachments ( );
  823. _bstr_t GetSender ( );
  824. void PutSender (
  825. _bstr_t pSender );
  826. IConfigurationPtr GetConfiguration ( );
  827. void PutConfiguration (
  828. struct IConfiguration * pConfiguration );
  829. void PutRefConfiguration (
  830. struct IConfiguration * pConfiguration );
  831. VARIANT_BOOL GetAutoGenerateTextBody ( );
  832. void PutAutoGenerateTextBody (
  833. VARIANT_BOOL pAutoGenerateTextBody );
  834. FieldsPtr GetEnvelopeFields ( );
  835. IBodyPartPtr GetTextBodyPart ( );
  836. IBodyPartPtr GetHTMLBodyPart ( );
  837. IBodyPartPtr GetBodyPart ( );
  838. IDataSourcePtr GetDataSource ( );
  839. FieldsPtr GetFields ( );
  840. VARIANT_BOOL GetMDNRequested ( );
  841. void PutMDNRequested (
  842. VARIANT_BOOL pMDNRequested );
  843. IBodyPartPtr AddRelatedBodyPart (
  844. _bstr_t URL,
  845. _bstr_t Reference,
  846. enum CdoReferenceType ReferenceType,
  847. _bstr_t UserName,
  848. _bstr_t Password );
  849. IBodyPartPtr AddAttachment (
  850. _bstr_t URL,
  851. _bstr_t UserName,
  852. _bstr_t Password );
  853. HRESULT CreateMHTMLBody (
  854. _bstr_t URL,
  855. enum CdoMHTMLFlags Flags,
  856. _bstr_t UserName,
  857. _bstr_t Password );
  858. IMessagePtr Forward ( );
  859. HRESULT Post ( );
  860. IMessagePtr PostReply ( );
  861. IMessagePtr Reply ( );
  862. IMessagePtr ReplyAll ( );
  863. HRESULT Send ( );
  864. _StreamPtr GetStream ( );
  865. IDispatchPtr GetInterface (
  866. _bstr_t Interface );
  867. //
  868. // Raw methods provided by interface
  869. //
  870. virtual HRESULT __stdcall get_BCC (
  871. BSTR * pBCC ) = 0;
  872. virtual HRESULT __stdcall put_BCC (
  873. BSTR pBCC ) = 0;
  874. virtual HRESULT __stdcall get_CC (
  875. BSTR * pCC ) = 0;
  876. virtual HRESULT __stdcall put_CC (
  877. BSTR pCC ) = 0;
  878. virtual HRESULT __stdcall get_FollowUpTo (
  879. BSTR * pFollowUpTo ) = 0;
  880. virtual HRESULT __stdcall put_FollowUpTo (
  881. BSTR pFollowUpTo ) = 0;
  882. virtual HRESULT __stdcall get_From (
  883. BSTR * pFrom ) = 0;
  884. virtual HRESULT __stdcall put_From (
  885. BSTR pFrom ) = 0;
  886. virtual HRESULT __stdcall get_Keywords (
  887. BSTR * pKeywords ) = 0;
  888. virtual HRESULT __stdcall put_Keywords (
  889. BSTR pKeywords ) = 0;
  890. virtual HRESULT __stdcall get_MimeFormatted (
  891. VARIANT_BOOL * pMimeFormatted ) = 0;
  892. virtual HRESULT __stdcall put_MimeFormatted (
  893. VARIANT_BOOL pMimeFormatted ) = 0;
  894. virtual HRESULT __stdcall get_Newsgroups (
  895. BSTR * pNewsgroups ) = 0;
  896. virtual HRESULT __stdcall put_Newsgroups (
  897. BSTR pNewsgroups ) = 0;
  898. virtual HRESULT __stdcall get_Organization (
  899. BSTR * pOrganization ) = 0;
  900. virtual HRESULT __stdcall put_Organization (
  901. BSTR pOrganization ) = 0;
  902. virtual HRESULT __stdcall get_ReceivedTime (
  903. DATE * varReceivedTime ) = 0;
  904. virtual HRESULT __stdcall get_ReplyTo (
  905. BSTR * pReplyTo ) = 0;
  906. virtual HRESULT __stdcall put_ReplyTo (
  907. BSTR pReplyTo ) = 0;
  908. virtual HRESULT __stdcall get_DSNOptions (
  909. enum CdoDSNOptions * pDSNOptions ) = 0;
  910. virtual HRESULT __stdcall put_DSNOptions (
  911. enum CdoDSNOptions pDSNOptions ) = 0;
  912. virtual HRESULT __stdcall get_SentOn (
  913. DATE * varSentOn ) = 0;
  914. virtual HRESULT __stdcall get_Subject (
  915. BSTR * pSubject ) = 0;
  916. virtual HRESULT __stdcall put_Subject (
  917. BSTR pSubject ) = 0;
  918. virtual HRESULT __stdcall get_To (
  919. BSTR * pTo ) = 0;
  920. virtual HRESULT __stdcall put_To (
  921. BSTR pTo ) = 0;
  922. virtual HRESULT __stdcall get_TextBody (
  923. BSTR * pTextBody ) = 0;
  924. virtual HRESULT __stdcall put_TextBody (
  925. BSTR pTextBody ) = 0;
  926. virtual HRESULT __stdcall get_HTMLBody (
  927. BSTR * pHTMLBody ) = 0;
  928. virtual HRESULT __stdcall put_HTMLBody (
  929. BSTR pHTMLBody ) = 0;
  930. virtual HRESULT __stdcall get_Attachments (
  931. struct IBodyParts * * varAttachments ) = 0;
  932. virtual HRESULT __stdcall get_Sender (
  933. BSTR * pSender ) = 0;
  934. virtual HRESULT __stdcall put_Sender (
  935. BSTR pSender ) = 0;
  936. virtual HRESULT __stdcall get_Configuration (
  937. struct IConfiguration * * pConfiguration ) = 0;
  938. virtual HRESULT __stdcall put_Configuration (
  939. struct IConfiguration * pConfiguration ) = 0;
  940. virtual HRESULT __stdcall putref_Configuration (
  941. struct IConfiguration * pConfiguration ) = 0;
  942. virtual HRESULT __stdcall get_AutoGenerateTextBody (
  943. VARIANT_BOOL * pAutoGenerateTextBody ) = 0;
  944. virtual HRESULT __stdcall put_AutoGenerateTextBody (
  945. VARIANT_BOOL pAutoGenerateTextBody ) = 0;
  946. virtual HRESULT __stdcall get_EnvelopeFields (
  947. struct Fields * * varEnvelopeFields ) = 0;
  948. virtual HRESULT __stdcall get_TextBodyPart (
  949. struct IBodyPart * * varTextBodyPart ) = 0;
  950. virtual HRESULT __stdcall get_HTMLBodyPart (
  951. struct IBodyPart * * varHTMLBodyPart ) = 0;
  952. virtual HRESULT __stdcall get_BodyPart (
  953. struct IBodyPart * * varBodyPart ) = 0;
  954. virtual HRESULT __stdcall get_DataSource (
  955. struct IDataSource * * varDataSource ) = 0;
  956. virtual HRESULT __stdcall get_Fields (
  957. struct Fields * * varFields ) = 0;
  958. virtual HRESULT __stdcall get_MDNRequested (
  959. VARIANT_BOOL * pMDNRequested ) = 0;
  960. virtual HRESULT __stdcall put_MDNRequested (
  961. VARIANT_BOOL pMDNRequested ) = 0;
  962. virtual HRESULT __stdcall raw_AddRelatedBodyPart (
  963. BSTR URL,
  964. BSTR Reference,
  965. enum CdoReferenceType ReferenceType,
  966. BSTR UserName,
  967. BSTR Password,
  968. struct IBodyPart * * ppBody ) = 0;
  969. virtual HRESULT __stdcall raw_AddAttachment (
  970. BSTR URL,
  971. BSTR UserName,
  972. BSTR Password,
  973. struct IBodyPart * * ppBody ) = 0;
  974. virtual HRESULT __stdcall raw_CreateMHTMLBody (
  975. BSTR URL,
  976. enum CdoMHTMLFlags Flags,
  977. BSTR UserName,
  978. BSTR Password ) = 0;
  979. virtual HRESULT __stdcall raw_Forward (
  980. struct IMessage * * ppMsg ) = 0;
  981. virtual HRESULT __stdcall raw_Post ( ) = 0;
  982. virtual HRESULT __stdcall raw_PostReply (
  983. struct IMessage * * ppMsg ) = 0;
  984. virtual HRESULT __stdcall raw_Reply (
  985. struct IMessage * * ppMsg ) = 0;
  986. virtual HRESULT __stdcall raw_ReplyAll (
  987. struct IMessage * * ppMsg ) = 0;
  988. virtual HRESULT __stdcall raw_Send ( ) = 0;
  989. virtual HRESULT __stdcall raw_GetStream (
  990. struct _Stream * * ppStream ) = 0;
  991. virtual HRESULT __stdcall raw_GetInterface (
  992. BSTR Interface,
  993. IDispatch * * ppUnknown ) = 0;
  994. };
  995. struct __declspec(uuid("cd000022-8b95-11d1-82db-00c04fb1625d"))
  996. IConfiguration : IDispatch
  997. {
  998. //
  999. // Property data
  1000. //
  1001. __declspec(property(get=GetFields))
  1002. FieldsPtr Fields;
  1003. //
  1004. // Wrapper methods for error-handling
  1005. //
  1006. FieldsPtr GetFields ( );
  1007. HRESULT Load (
  1008. enum CdoConfigSource LoadFrom,
  1009. _bstr_t URL );
  1010. IDispatchPtr GetInterface (
  1011. _bstr_t Interface );
  1012. //
  1013. // Raw methods provided by interface
  1014. //
  1015. virtual HRESULT __stdcall get_Fields (
  1016. struct Fields * * varFields ) = 0;
  1017. virtual HRESULT __stdcall raw_Load (
  1018. enum CdoConfigSource LoadFrom,
  1019. BSTR URL ) = 0;
  1020. virtual HRESULT __stdcall raw_GetInterface (
  1021. BSTR Interface,
  1022. IDispatch * * ppUnknown ) = 0;
  1023. };
  1024. struct __declspec(uuid("cd000001-8b95-11d1-82db-00c04fb1625d"))
  1025. Message;
  1026. // [ default ] interface IMessage
  1027. // interface IDataSource
  1028. // interface IBodyPart
  1029. struct __declspec(uuid("cd000002-8b95-11d1-82db-00c04fb1625d"))
  1030. Configuration;
  1031. // [ default ] interface IConfiguration
  1032. struct __declspec(uuid("cd000004-8b95-11d1-82db-00c04fb1625d"))
  1033. DropDirectory;
  1034. // [ default ] interface IDropDirectory
  1035. struct __declspec(uuid("cd000024-8b95-11d1-82db-00c04fb1625d"))
  1036. IDropDirectory : IDispatch
  1037. {
  1038. //
  1039. // Wrapper methods for error-handling
  1040. //
  1041. IMessagesPtr GetMessages (
  1042. _bstr_t DirName );
  1043. //
  1044. // Raw methods provided by interface
  1045. //
  1046. virtual HRESULT __stdcall raw_GetMessages (
  1047. BSTR DirName,
  1048. struct IMessages * * Msgs ) = 0;
  1049. };
  1050. struct __declspec(uuid("cd000008-8b95-11d1-82db-00c04fb1625d"))
  1051. SMTPConnector;
  1052. // [ default ] interface ISMTPScriptConnector
  1053. // [ default, source ] interface ISMTPOnArrival
  1054. struct __declspec(uuid("cd000030-8b95-11d1-82db-00c04fb1625d"))
  1055. ISMTPScriptConnector : IDispatch
  1056. {};
  1057. struct __declspec(uuid("cd000026-8b95-11d1-82db-00c04fb1625d"))
  1058. ISMTPOnArrival : IDispatch
  1059. {
  1060. //
  1061. // Wrapper methods for error-handling
  1062. //
  1063. HRESULT OnArrival (
  1064. struct IMessage * Msg,
  1065. enum CdoEventStatus * EventStatus );
  1066. //
  1067. // Raw methods provided by interface
  1068. //
  1069. virtual HRESULT __stdcall raw_OnArrival (
  1070. struct IMessage * Msg,
  1071. enum CdoEventStatus * EventStatus ) = 0;
  1072. };
  1073. struct __declspec(uuid("cd000011-8b95-11d1-82db-00c04fb1625d"))
  1074. NNTPEarlyConnector;
  1075. // [ default ] interface INNTPEarlyScriptConnector
  1076. // [ default, source ] interface INNTPOnPostEarly
  1077. struct __declspec(uuid("cd000034-8b95-11d1-82db-00c04fb1625d"))
  1078. INNTPEarlyScriptConnector : IDispatch
  1079. {};
  1080. struct __declspec(uuid("cd000033-8b95-11d1-82db-00c04fb1625d"))
  1081. INNTPOnPostEarly : IDispatch
  1082. {
  1083. //
  1084. // Wrapper methods for error-handling
  1085. //
  1086. HRESULT OnPostEarly (
  1087. struct IMessage * Msg,
  1088. enum CdoEventStatus * EventStatus );
  1089. //
  1090. // Raw methods provided by interface
  1091. //
  1092. virtual HRESULT __stdcall raw_OnPostEarly (
  1093. struct IMessage * Msg,
  1094. enum CdoEventStatus * EventStatus ) = 0;
  1095. };
  1096. struct __declspec(uuid("cd000009-8b95-11d1-82db-00c04fb1625d"))
  1097. NNTPPostConnector;
  1098. // [ default ] interface INNTPPostScriptConnector
  1099. // [ default, source ] interface INNTPOnPost
  1100. struct __declspec(uuid("cd000031-8b95-11d1-82db-00c04fb1625d"))
  1101. INNTPPostScriptConnector : IDispatch
  1102. {};
  1103. struct __declspec(uuid("cd000027-8b95-11d1-82db-00c04fb1625d"))
  1104. INNTPOnPost : IDispatch
  1105. {
  1106. //
  1107. // Wrapper methods for error-handling
  1108. //
  1109. HRESULT OnPost (
  1110. struct IMessage * Msg,
  1111. enum CdoEventStatus * EventStatus );
  1112. //
  1113. // Raw methods provided by interface
  1114. //
  1115. virtual HRESULT __stdcall raw_OnPost (
  1116. struct IMessage * Msg,
  1117. enum CdoEventStatus * EventStatus ) = 0;
  1118. };
  1119. struct __declspec(uuid("cd000010-8b95-11d1-82db-00c04fb1625d"))
  1120. NNTPFinalConnector;
  1121. // [ default ] interface INNTPFinalScriptConnector
  1122. // [ default, source ] interface INNTPOnPostFinal
  1123. struct __declspec(uuid("cd000032-8b95-11d1-82db-00c04fb1625d"))
  1124. INNTPFinalScriptConnector : IDispatch
  1125. {};
  1126. struct __declspec(uuid("cd000028-8b95-11d1-82db-00c04fb1625d"))
  1127. INNTPOnPostFinal : IDispatch
  1128. {
  1129. //
  1130. // Wrapper methods for error-handling
  1131. //
  1132. HRESULT OnPostFinal (
  1133. struct IMessage * Msg,
  1134. enum CdoEventStatus * EventStatus );
  1135. //
  1136. // Raw methods provided by interface
  1137. //
  1138. virtual HRESULT __stdcall raw_OnPostFinal (
  1139. struct IMessage * Msg,
  1140. enum CdoEventStatus * EventStatus ) = 0;
  1141. };
  1142. struct __declspec(uuid("cd0ff000-8b95-11d1-82db-00c04fb1625d"))
  1143. IGetInterface : IUnknown
  1144. {
  1145. //
  1146. // Wrapper methods for error-handling
  1147. //
  1148. IDispatchPtr GetInterface (
  1149. _bstr_t Interface );
  1150. IDispatchPtr GetInterfaceInner (
  1151. _bstr_t Interface );
  1152. //
  1153. // Raw methods provided by interface
  1154. //
  1155. virtual HRESULT __stdcall raw_GetInterface (
  1156. BSTR Interface,
  1157. IDispatch * * ppUnknown ) = 0;
  1158. virtual HRESULT __stdcall raw_GetInterfaceInner (
  1159. BSTR Interface,
  1160. IDispatch * * ppUnknown ) = 0;
  1161. };
  1162. //
  1163. // Wrapper method implementations
  1164. //
  1165. //
  1166. // interface IBodyParts wrapper method implementations
  1167. //
  1168. inline long IBodyParts::GetCount ( ) {
  1169. long _result;
  1170. HRESULT _hr = get_Count(&_result);
  1171. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1172. return _result;
  1173. }
  1174. inline IBodyPartPtr IBodyParts::GetItem ( long Index ) {
  1175. struct IBodyPart * _result;
  1176. HRESULT _hr = get_Item(Index, &_result);
  1177. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1178. return IBodyPartPtr(_result, false);
  1179. }
  1180. inline IUnknownPtr IBodyParts::Get_NewEnum ( ) {
  1181. IUnknown * _result;
  1182. HRESULT _hr = get__NewEnum(&_result);
  1183. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1184. return IUnknownPtr(_result, false);
  1185. }
  1186. inline HRESULT IBodyParts::Delete ( const _variant_t & varBP ) {
  1187. HRESULT _hr = raw_Delete(varBP);
  1188. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1189. return _hr;
  1190. }
  1191. inline HRESULT IBodyParts::DeleteAll ( ) {
  1192. HRESULT _hr = raw_DeleteAll();
  1193. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1194. return _hr;
  1195. }
  1196. inline IBodyPartPtr IBodyParts::Add ( long Index ) {
  1197. struct IBodyPart * _result;
  1198. HRESULT _hr = raw_Add(Index, &_result);
  1199. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1200. return IBodyPartPtr(_result, false);
  1201. }
  1202. //
  1203. // interface IBodyPart wrapper method implementations
  1204. //
  1205. inline IBodyPartsPtr IBodyPart::GetBodyParts ( ) {
  1206. struct IBodyParts * _result;
  1207. HRESULT _hr = get_BodyParts(&_result);
  1208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1209. return IBodyPartsPtr(_result, false);
  1210. }
  1211. inline _bstr_t IBodyPart::GetContentTransferEncoding ( ) {
  1212. BSTR _result;
  1213. HRESULT _hr = get_ContentTransferEncoding(&_result);
  1214. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1215. return _bstr_t(_result, false);
  1216. }
  1217. inline void IBodyPart::PutContentTransferEncoding ( _bstr_t pContentTransferEncoding ) {
  1218. HRESULT _hr = put_ContentTransferEncoding(pContentTransferEncoding);
  1219. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1220. }
  1221. inline _bstr_t IBodyPart::GetContentMediaType ( ) {
  1222. BSTR _result;
  1223. HRESULT _hr = get_ContentMediaType(&_result);
  1224. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1225. return _bstr_t(_result, false);
  1226. }
  1227. inline void IBodyPart::PutContentMediaType ( _bstr_t pContentMediaType ) {
  1228. HRESULT _hr = put_ContentMediaType(pContentMediaType);
  1229. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1230. }
  1231. inline FieldsPtr IBodyPart::GetFields ( ) {
  1232. struct Fields * _result;
  1233. HRESULT _hr = get_Fields(&_result);
  1234. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1235. return FieldsPtr(_result, false);
  1236. }
  1237. inline _bstr_t IBodyPart::GetCharset ( ) {
  1238. BSTR _result;
  1239. HRESULT _hr = get_Charset(&_result);
  1240. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1241. return _bstr_t(_result, false);
  1242. }
  1243. inline void IBodyPart::PutCharset ( _bstr_t pCharset ) {
  1244. HRESULT _hr = put_Charset(pCharset);
  1245. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1246. }
  1247. inline _bstr_t IBodyPart::GetFileName ( ) {
  1248. BSTR _result;
  1249. HRESULT _hr = get_FileName(&_result);
  1250. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1251. return _bstr_t(_result, false);
  1252. }
  1253. inline IDataSourcePtr IBodyPart::GetDataSource ( ) {
  1254. struct IDataSource * _result;
  1255. HRESULT _hr = get_DataSource(&_result);
  1256. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1257. return IDataSourcePtr(_result, false);
  1258. }
  1259. inline _bstr_t IBodyPart::GetContentClass ( ) {
  1260. BSTR _result;
  1261. HRESULT _hr = get_ContentClass(&_result);
  1262. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1263. return _bstr_t(_result, false);
  1264. }
  1265. inline void IBodyPart::PutContentClass ( _bstr_t pContentClass ) {
  1266. HRESULT _hr = put_ContentClass(pContentClass);
  1267. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1268. }
  1269. inline _bstr_t IBodyPart::GetContentClassName ( ) {
  1270. BSTR _result;
  1271. HRESULT _hr = get_ContentClassName(&_result);
  1272. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1273. return _bstr_t(_result, false);
  1274. }
  1275. inline void IBodyPart::PutContentClassName ( _bstr_t pContentClassName ) {
  1276. HRESULT _hr = put_ContentClassName(pContentClassName);
  1277. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1278. }
  1279. inline IBodyPartPtr IBodyPart::GetParent ( ) {
  1280. struct IBodyPart * _result;
  1281. HRESULT _hr = get_Parent(&_result);
  1282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1283. return IBodyPartPtr(_result, false);
  1284. }
  1285. inline IBodyPartPtr IBodyPart::AddBodyPart ( long Index ) {
  1286. struct IBodyPart * _result;
  1287. HRESULT _hr = raw_AddBodyPart(Index, &_result);
  1288. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1289. return IBodyPartPtr(_result, false);
  1290. }
  1291. inline HRESULT IBodyPart::SaveToFile ( _bstr_t FileName ) {
  1292. HRESULT _hr = raw_SaveToFile(FileName);
  1293. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1294. return _hr;
  1295. }
  1296. inline _StreamPtr IBodyPart::GetEncodedContentStream ( ) {
  1297. struct _Stream * _result;
  1298. HRESULT _hr = raw_GetEncodedContentStream(&_result);
  1299. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1300. return _StreamPtr(_result, false);
  1301. }
  1302. inline _StreamPtr IBodyPart::GetDecodedContentStream ( ) {
  1303. struct _Stream * _result;
  1304. HRESULT _hr = raw_GetDecodedContentStream(&_result);
  1305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1306. return _StreamPtr(_result, false);
  1307. }
  1308. inline _StreamPtr IBodyPart::GetStream ( ) {
  1309. struct _Stream * _result;
  1310. HRESULT _hr = raw_GetStream(&_result);
  1311. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1312. return _StreamPtr(_result, false);
  1313. }
  1314. inline _bstr_t IBodyPart::GetFieldParameter ( _bstr_t FieldName, _bstr_t Parameter ) {
  1315. BSTR _result;
  1316. HRESULT _hr = raw_GetFieldParameter(FieldName, Parameter, &_result);
  1317. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1318. return _bstr_t(_result, false);
  1319. }
  1320. inline IDispatchPtr IBodyPart::GetInterface ( _bstr_t Interface ) {
  1321. IDispatch * _result;
  1322. HRESULT _hr = raw_GetInterface(Interface, &_result);
  1323. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1324. return IDispatchPtr(_result, false);
  1325. }
  1326. //
  1327. // interface IDataSource wrapper method implementations
  1328. //
  1329. inline _bstr_t IDataSource::GetSourceClass ( ) {
  1330. BSTR _result;
  1331. HRESULT _hr = get_SourceClass(&_result);
  1332. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1333. return _bstr_t(_result, false);
  1334. }
  1335. inline IUnknownPtr IDataSource::GetSource ( ) {
  1336. IUnknown * _result;
  1337. HRESULT _hr = get_Source(&_result);
  1338. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1339. return IUnknownPtr(_result, false);
  1340. }
  1341. inline VARIANT_BOOL IDataSource::GetIsDirty ( ) {
  1342. VARIANT_BOOL _result;
  1343. HRESULT _hr = get_IsDirty(&_result);
  1344. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1345. return _result;
  1346. }
  1347. inline void IDataSource::PutIsDirty ( VARIANT_BOOL pIsDirty ) {
  1348. HRESULT _hr = put_IsDirty(pIsDirty);
  1349. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1350. }
  1351. inline _bstr_t IDataSource::GetSourceURL ( ) {
  1352. BSTR _result;
  1353. HRESULT _hr = get_SourceURL(&_result);
  1354. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1355. return _bstr_t(_result, false);
  1356. }
  1357. inline _ConnectionPtr IDataSource::GetActiveConnection ( ) {
  1358. struct _Connection * _result;
  1359. HRESULT _hr = get_ActiveConnection(&_result);
  1360. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1361. return _ConnectionPtr(_result, false);
  1362. }
  1363. inline HRESULT IDataSource::SaveToObject ( IUnknown * Source, _bstr_t InterfaceName ) {
  1364. HRESULT _hr = raw_SaveToObject(Source, InterfaceName);
  1365. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1366. return _hr;
  1367. }
  1368. inline HRESULT IDataSource::OpenObject ( IUnknown * Source, _bstr_t InterfaceName ) {
  1369. HRESULT _hr = raw_OpenObject(Source, InterfaceName);
  1370. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1371. return _hr;
  1372. }
  1373. inline HRESULT IDataSource::SaveTo ( _bstr_t SourceURL, IDispatch * ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1374. HRESULT _hr = raw_SaveTo(SourceURL, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  1375. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1376. return _hr;
  1377. }
  1378. inline HRESULT IDataSource::Open ( _bstr_t SourceURL, IDispatch * ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1379. HRESULT _hr = raw_Open(SourceURL, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  1380. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1381. return _hr;
  1382. }
  1383. inline HRESULT IDataSource::Save ( ) {
  1384. HRESULT _hr = raw_Save();
  1385. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1386. return _hr;
  1387. }
  1388. inline HRESULT IDataSource::SaveToContainer ( _bstr_t ContainerURL, IDispatch * ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1389. HRESULT _hr = raw_SaveToContainer(ContainerURL, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  1390. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1391. return _hr;
  1392. }
  1393. //
  1394. // interface IMessages wrapper method implementations
  1395. //
  1396. inline IMessagePtr IMessages::GetItem ( long Index ) {
  1397. struct IMessage * _result;
  1398. HRESULT _hr = get_Item(Index, &_result);
  1399. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1400. return IMessagePtr(_result, false);
  1401. }
  1402. inline long IMessages::GetCount ( ) {
  1403. long _result;
  1404. HRESULT _hr = get_Count(&_result);
  1405. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1406. return _result;
  1407. }
  1408. inline HRESULT IMessages::Delete ( long Index ) {
  1409. HRESULT _hr = raw_Delete(Index);
  1410. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1411. return _hr;
  1412. }
  1413. inline HRESULT IMessages::DeleteAll ( ) {
  1414. HRESULT _hr = raw_DeleteAll();
  1415. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1416. return _hr;
  1417. }
  1418. inline IUnknownPtr IMessages::Get_NewEnum ( ) {
  1419. IUnknown * _result;
  1420. HRESULT _hr = get__NewEnum(&_result);
  1421. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1422. return IUnknownPtr(_result, false);
  1423. }
  1424. inline _bstr_t IMessages::GetFileName ( const _variant_t & var ) {
  1425. BSTR _result;
  1426. HRESULT _hr = get_FileName(var, &_result);
  1427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1428. return _bstr_t(_result, false);
  1429. }
  1430. //
  1431. // interface IMessage wrapper method implementations
  1432. //
  1433. inline _bstr_t IMessage::GetBCC ( ) {
  1434. BSTR _result;
  1435. HRESULT _hr = get_BCC(&_result);
  1436. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1437. return _bstr_t(_result, false);
  1438. }
  1439. inline void IMessage::PutBCC ( _bstr_t pBCC ) {
  1440. HRESULT _hr = put_BCC(pBCC);
  1441. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1442. }
  1443. inline _bstr_t IMessage::GetCC ( ) {
  1444. BSTR _result;
  1445. HRESULT _hr = get_CC(&_result);
  1446. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1447. return _bstr_t(_result, false);
  1448. }
  1449. inline void IMessage::PutCC ( _bstr_t pCC ) {
  1450. HRESULT _hr = put_CC(pCC);
  1451. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1452. }
  1453. inline _bstr_t IMessage::GetFollowUpTo ( ) {
  1454. BSTR _result;
  1455. HRESULT _hr = get_FollowUpTo(&_result);
  1456. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1457. return _bstr_t(_result, false);
  1458. }
  1459. inline void IMessage::PutFollowUpTo ( _bstr_t pFollowUpTo ) {
  1460. HRESULT _hr = put_FollowUpTo(pFollowUpTo);
  1461. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1462. }
  1463. inline _bstr_t IMessage::GetFrom ( ) {
  1464. BSTR _result;
  1465. HRESULT _hr = get_From(&_result);
  1466. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1467. return _bstr_t(_result, false);
  1468. }
  1469. inline void IMessage::PutFrom ( _bstr_t pFrom ) {
  1470. HRESULT _hr = put_From(pFrom);
  1471. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1472. }
  1473. inline _bstr_t IMessage::GetKeywords ( ) {
  1474. BSTR _result;
  1475. HRESULT _hr = get_Keywords(&_result);
  1476. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1477. return _bstr_t(_result, false);
  1478. }
  1479. inline void IMessage::PutKeywords ( _bstr_t pKeywords ) {
  1480. HRESULT _hr = put_Keywords(pKeywords);
  1481. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1482. }
  1483. inline VARIANT_BOOL IMessage::GetMimeFormatted ( ) {
  1484. VARIANT_BOOL _result;
  1485. HRESULT _hr = get_MimeFormatted(&_result);
  1486. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1487. return _result;
  1488. }
  1489. inline void IMessage::PutMimeFormatted ( VARIANT_BOOL pMimeFormatted ) {
  1490. HRESULT _hr = put_MimeFormatted(pMimeFormatted);
  1491. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1492. }
  1493. inline _bstr_t IMessage::GetNewsgroups ( ) {
  1494. BSTR _result;
  1495. HRESULT _hr = get_Newsgroups(&_result);
  1496. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1497. return _bstr_t(_result, false);
  1498. }
  1499. inline void IMessage::PutNewsgroups ( _bstr_t pNewsgroups ) {
  1500. HRESULT _hr = put_Newsgroups(pNewsgroups);
  1501. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1502. }
  1503. inline _bstr_t IMessage::GetOrganization ( ) {
  1504. BSTR _result;
  1505. HRESULT _hr = get_Organization(&_result);
  1506. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1507. return _bstr_t(_result, false);
  1508. }
  1509. inline void IMessage::PutOrganization ( _bstr_t pOrganization ) {
  1510. HRESULT _hr = put_Organization(pOrganization);
  1511. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1512. }
  1513. inline DATE IMessage::GetReceivedTime ( ) {
  1514. DATE _result;
  1515. HRESULT _hr = get_ReceivedTime(&_result);
  1516. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1517. return _result;
  1518. }
  1519. inline _bstr_t IMessage::GetReplyTo ( ) {
  1520. BSTR _result;
  1521. HRESULT _hr = get_ReplyTo(&_result);
  1522. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1523. return _bstr_t(_result, false);
  1524. }
  1525. inline void IMessage::PutReplyTo ( _bstr_t pReplyTo ) {
  1526. HRESULT _hr = put_ReplyTo(pReplyTo);
  1527. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1528. }
  1529. inline enum CdoDSNOptions IMessage::GetDSNOptions ( ) {
  1530. enum CdoDSNOptions _result;
  1531. HRESULT _hr = get_DSNOptions(&_result);
  1532. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1533. return _result;
  1534. }
  1535. inline void IMessage::PutDSNOptions ( enum CdoDSNOptions pDSNOptions ) {
  1536. HRESULT _hr = put_DSNOptions(pDSNOptions);
  1537. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1538. }
  1539. inline DATE IMessage::GetSentOn ( ) {
  1540. DATE _result;
  1541. HRESULT _hr = get_SentOn(&_result);
  1542. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1543. return _result;
  1544. }
  1545. inline _bstr_t IMessage::GetSubject ( ) {
  1546. BSTR _result;
  1547. HRESULT _hr = get_Subject(&_result);
  1548. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1549. return _bstr_t(_result, false);
  1550. }
  1551. inline void IMessage::PutSubject ( _bstr_t pSubject ) {
  1552. HRESULT _hr = put_Subject(pSubject);
  1553. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1554. }
  1555. inline _bstr_t IMessage::GetTo ( ) {
  1556. BSTR _result;
  1557. HRESULT _hr = get_To(&_result);
  1558. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1559. return _bstr_t(_result, false);
  1560. }
  1561. inline void IMessage::PutTo ( _bstr_t pTo ) {
  1562. HRESULT _hr = put_To(pTo);
  1563. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1564. }
  1565. inline _bstr_t IMessage::GetTextBody ( ) {
  1566. BSTR _result;
  1567. HRESULT _hr = get_TextBody(&_result);
  1568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1569. return _bstr_t(_result, false);
  1570. }
  1571. inline void IMessage::PutTextBody ( _bstr_t pTextBody ) {
  1572. HRESULT _hr = put_TextBody(pTextBody);
  1573. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1574. }
  1575. inline _bstr_t IMessage::GetHTMLBody ( ) {
  1576. BSTR _result;
  1577. HRESULT _hr = get_HTMLBody(&_result);
  1578. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1579. return _bstr_t(_result, false);
  1580. }
  1581. inline void IMessage::PutHTMLBody ( _bstr_t pHTMLBody ) {
  1582. HRESULT _hr = put_HTMLBody(pHTMLBody);
  1583. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1584. }
  1585. inline IBodyPartsPtr IMessage::GetAttachments ( ) {
  1586. struct IBodyParts * _result;
  1587. HRESULT _hr = get_Attachments(&_result);
  1588. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1589. return IBodyPartsPtr(_result, false);
  1590. }
  1591. inline _bstr_t IMessage::GetSender ( ) {
  1592. BSTR _result;
  1593. HRESULT _hr = get_Sender(&_result);
  1594. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1595. return _bstr_t(_result, false);
  1596. }
  1597. inline void IMessage::PutSender ( _bstr_t pSender ) {
  1598. HRESULT _hr = put_Sender(pSender);
  1599. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1600. }
  1601. inline IConfigurationPtr IMessage::GetConfiguration ( ) {
  1602. struct IConfiguration * _result;
  1603. HRESULT _hr = get_Configuration(&_result);
  1604. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1605. return IConfigurationPtr(_result, false);
  1606. }
  1607. inline void IMessage::PutConfiguration ( struct IConfiguration * pConfiguration ) {
  1608. HRESULT _hr = put_Configuration(pConfiguration);
  1609. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1610. }
  1611. inline void IMessage::PutRefConfiguration ( struct IConfiguration * pConfiguration ) {
  1612. HRESULT _hr = putref_Configuration(pConfiguration);
  1613. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1614. }
  1615. inline VARIANT_BOOL IMessage::GetAutoGenerateTextBody ( ) {
  1616. VARIANT_BOOL _result;
  1617. HRESULT _hr = get_AutoGenerateTextBody(&_result);
  1618. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1619. return _result;
  1620. }
  1621. inline void IMessage::PutAutoGenerateTextBody ( VARIANT_BOOL pAutoGenerateTextBody ) {
  1622. HRESULT _hr = put_AutoGenerateTextBody(pAutoGenerateTextBody);
  1623. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1624. }
  1625. inline FieldsPtr IMessage::GetEnvelopeFields ( ) {
  1626. struct Fields * _result;
  1627. HRESULT _hr = get_EnvelopeFields(&_result);
  1628. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1629. return FieldsPtr(_result, false);
  1630. }
  1631. inline IBodyPartPtr IMessage::GetTextBodyPart ( ) {
  1632. struct IBodyPart * _result;
  1633. HRESULT _hr = get_TextBodyPart(&_result);
  1634. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1635. return IBodyPartPtr(_result, false);
  1636. }
  1637. inline IBodyPartPtr IMessage::GetHTMLBodyPart ( ) {
  1638. struct IBodyPart * _result;
  1639. HRESULT _hr = get_HTMLBodyPart(&_result);
  1640. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1641. return IBodyPartPtr(_result, false);
  1642. }
  1643. inline IBodyPartPtr IMessage::GetBodyPart ( ) {
  1644. struct IBodyPart * _result;
  1645. HRESULT _hr = get_BodyPart(&_result);
  1646. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1647. return IBodyPartPtr(_result, false);
  1648. }
  1649. inline IDataSourcePtr IMessage::GetDataSource ( ) {
  1650. struct IDataSource * _result;
  1651. HRESULT _hr = get_DataSource(&_result);
  1652. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1653. return IDataSourcePtr(_result, false);
  1654. }
  1655. inline FieldsPtr IMessage::GetFields ( ) {
  1656. struct Fields * _result;
  1657. HRESULT _hr = get_Fields(&_result);
  1658. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1659. return FieldsPtr(_result, false);
  1660. }
  1661. inline VARIANT_BOOL IMessage::GetMDNRequested ( ) {
  1662. VARIANT_BOOL _result;
  1663. HRESULT _hr = get_MDNRequested(&_result);
  1664. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1665. return _result;
  1666. }
  1667. inline void IMessage::PutMDNRequested ( VARIANT_BOOL pMDNRequested ) {
  1668. HRESULT _hr = put_MDNRequested(pMDNRequested);
  1669. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1670. }
  1671. inline IBodyPartPtr IMessage::AddRelatedBodyPart ( _bstr_t URL, _bstr_t Reference, enum CdoReferenceType ReferenceType, _bstr_t UserName, _bstr_t Password ) {
  1672. struct IBodyPart * _result;
  1673. HRESULT _hr = raw_AddRelatedBodyPart(URL, Reference, ReferenceType, UserName, Password, &_result);
  1674. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1675. return IBodyPartPtr(_result, false);
  1676. }
  1677. inline IBodyPartPtr IMessage::AddAttachment ( _bstr_t URL, _bstr_t UserName, _bstr_t Password ) {
  1678. struct IBodyPart * _result;
  1679. HRESULT _hr = raw_AddAttachment(URL, UserName, Password, &_result);
  1680. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1681. return IBodyPartPtr(_result, false);
  1682. }
  1683. inline HRESULT IMessage::CreateMHTMLBody ( _bstr_t URL, enum CdoMHTMLFlags Flags, _bstr_t UserName, _bstr_t Password ) {
  1684. HRESULT _hr = raw_CreateMHTMLBody(URL, Flags, UserName, Password);
  1685. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1686. return _hr;
  1687. }
  1688. inline IMessagePtr IMessage::Forward ( ) {
  1689. struct IMessage * _result;
  1690. HRESULT _hr = raw_Forward(&_result);
  1691. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1692. return IMessagePtr(_result, false);
  1693. }
  1694. inline HRESULT IMessage::Post ( ) {
  1695. HRESULT _hr = raw_Post();
  1696. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1697. return _hr;
  1698. }
  1699. inline IMessagePtr IMessage::PostReply ( ) {
  1700. struct IMessage * _result;
  1701. HRESULT _hr = raw_PostReply(&_result);
  1702. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1703. return IMessagePtr(_result, false);
  1704. }
  1705. inline IMessagePtr IMessage::Reply ( ) {
  1706. struct IMessage * _result;
  1707. HRESULT _hr = raw_Reply(&_result);
  1708. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1709. return IMessagePtr(_result, false);
  1710. }
  1711. inline IMessagePtr IMessage::ReplyAll ( ) {
  1712. struct IMessage * _result;
  1713. HRESULT _hr = raw_ReplyAll(&_result);
  1714. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1715. return IMessagePtr(_result, false);
  1716. }
  1717. inline HRESULT IMessage::Send ( ) {
  1718. HRESULT _hr = raw_Send();
  1719. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1720. return _hr;
  1721. }
  1722. inline _StreamPtr IMessage::GetStream ( ) {
  1723. struct _Stream * _result;
  1724. HRESULT _hr = raw_GetStream(&_result);
  1725. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1726. return _StreamPtr(_result, false);
  1727. }
  1728. inline IDispatchPtr IMessage::GetInterface ( _bstr_t Interface ) {
  1729. IDispatch * _result;
  1730. HRESULT _hr = raw_GetInterface(Interface, &_result);
  1731. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1732. return IDispatchPtr(_result, false);
  1733. }
  1734. //
  1735. // interface IConfiguration wrapper method implementations
  1736. //
  1737. inline FieldsPtr IConfiguration::GetFields ( ) {
  1738. struct Fields * _result;
  1739. HRESULT _hr = get_Fields(&_result);
  1740. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1741. return FieldsPtr(_result, false);
  1742. }
  1743. inline HRESULT IConfiguration::Load ( enum CdoConfigSource LoadFrom, _bstr_t URL ) {
  1744. HRESULT _hr = raw_Load(LoadFrom, URL);
  1745. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1746. return _hr;
  1747. }
  1748. inline IDispatchPtr IConfiguration::GetInterface ( _bstr_t Interface ) {
  1749. IDispatch * _result;
  1750. HRESULT _hr = raw_GetInterface(Interface, &_result);
  1751. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1752. return IDispatchPtr(_result, false);
  1753. }
  1754. //
  1755. // interface IDropDirectory wrapper method implementations
  1756. //
  1757. inline IMessagesPtr IDropDirectory::GetMessages ( _bstr_t DirName ) {
  1758. struct IMessages * _result;
  1759. HRESULT _hr = raw_GetMessages(DirName, &_result);
  1760. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1761. return IMessagesPtr(_result, false);
  1762. }
  1763. //
  1764. // interface ISMTPOnArrival wrapper method implementations
  1765. //
  1766. inline HRESULT ISMTPOnArrival::OnArrival ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  1767. HRESULT _hr = raw_OnArrival(Msg, EventStatus);
  1768. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1769. return _hr;
  1770. }
  1771. //
  1772. // interface INNTPOnPostEarly wrapper method implementations
  1773. //
  1774. inline HRESULT INNTPOnPostEarly::OnPostEarly ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  1775. HRESULT _hr = raw_OnPostEarly(Msg, EventStatus);
  1776. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1777. return _hr;
  1778. }
  1779. //
  1780. // interface INNTPOnPost wrapper method implementations
  1781. //
  1782. inline HRESULT INNTPOnPost::OnPost ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  1783. HRESULT _hr = raw_OnPost(Msg, EventStatus);
  1784. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1785. return _hr;
  1786. }
  1787. //
  1788. // interface INNTPOnPostFinal wrapper method implementations
  1789. //
  1790. inline HRESULT INNTPOnPostFinal::OnPostFinal ( struct IMessage * Msg, enum CdoEventStatus * EventStatus ) {
  1791. HRESULT _hr = raw_OnPostFinal(Msg, EventStatus);
  1792. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1793. return _hr;
  1794. }
  1795. //
  1796. // interface IGetInterface wrapper method implementations
  1797. //
  1798. inline IDispatchPtr IGetInterface::GetInterface ( _bstr_t Interface ) {
  1799. IDispatch * _result;
  1800. HRESULT _hr = raw_GetInterface(Interface, &_result);
  1801. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1802. return IDispatchPtr(_result, false);
  1803. }
  1804. inline IDispatchPtr IGetInterface::GetInterfaceInner ( _bstr_t Interface ) {
  1805. IDispatch * _result;
  1806. HRESULT _hr = raw_GetInterfaceInner(Interface, &_result);
  1807. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1808. return IDispatchPtr(_result, false);
  1809. }
  1810. #pragma pack(pop)