2 * Copyright 2007 Robert Shearman for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #define DECLARE_HANDLE
(name
) typedef void *name
25 interface IMimeMessageCallback
;
26 interface IMimeEnumAddressTypes
;
27 interface IMimeMessageParts
;
28 interface IMimeMessageTree
;
30 interface IMimeEnumProperties
;
32 cpp_quote
("DEFINE_GUID(CLSID_IMimeBody, 0xfd853cdb, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
33 cpp_quote
("DEFINE_GUID(CLSID_IMimeAllocator, 0xfd853cdd, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
34 cpp_quote
("DEFINE_GUID(CLSID_IMimeMessage, 0xfd853ce3, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
35 cpp_quote
("DEFINE_GUID(CLSID_IMimeSecurity, 0xfd853cde, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
36 cpp_quote
("DEFINE_GUID(CLSID_IVirtualStream, 0xfd853cdf, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
38 cpp_quote
("#define MIME_E_REG_CREATE_KEY 0x800cce01")
39 cpp_quote
("#define MIME_E_REG_QUERY_INFO 0x800cce02")
40 cpp_quote
("#define MIME_E_INVALID_ENCTYPE 0x800cce03")
41 cpp_quote
("#define MIME_E_BOUNDARY_MISMATCH 0x800cce04")
42 cpp_quote
("#define MIME_E_NOT_FOUND 0x800cce05")
43 cpp_quote
("#define MIME_E_NO_DATA 0x800cce05")
44 cpp_quote
("#define MIME_E_BUFFER_TOO_SMALL 0x800cce06")
45 cpp_quote
("#define MIME_E_INVALID_ITEM_FLAGS 0x800cce07")
46 cpp_quote
("#define MIME_E_ONE_LINE_ITEME 0x800cce08")
47 cpp_quote
("#define MIME_E_INVALID_HANDLE 0x800cce09")
48 cpp_quote
("#define MIME_E_CHARSET_TRANSLATE 0x800cce0a")
49 cpp_quote
("#define MIME_E_NOT_INITIALIZED 0x800cce0b")
51 cpp_quote
("#define MIME_E_INVALID_OPTION_VALUE 0x800cce1f")
52 cpp_quote
("#define MIME_E_INVALID_OPTION_ID 0x800cce20")
53 cpp_quote
("#define MIME_E_INVALID_HEADER_NAME 0x800cce21")
54 cpp_quote
("#define MIME_E_NOT_BOUND 0x800cce22")
55 cpp_quote
("#define MIME_E_MAX_SIZE_TOO_SMALL 0x800cce23")
56 cpp_quote
("#define MIME_E_MULTIPART_HAS_CHILDREN 0x800cce25")
57 cpp_quote
("#define MIME_E_INVALID_PROP_FLAGS 0x800cce26")
58 cpp_quote
("#define MIME_E_INVALID_ADDRESS_TYPE 0x800cce27")
59 cpp_quote
("#define MIME_E_INVALID_OBJECT_IID 0x800cce28")
60 cpp_quote
("#define MIME_E_MLANG_DLL_NOT_FOUND 0x800cce29")
61 cpp_quote
("#define MIME_E_ROOT_NOT_EMPTY 0x800cce2a")
62 cpp_quote
("#define MIME_E_MLANG_BAD_DLL 0x800cce2b")
63 cpp_quote
("#define MIME_E_REG_OPEN_KEY 0x800cce2c")
64 cpp_quote
("#define MIME_E_INVALID_INET_DATE 0x800cce2d")
65 cpp_quote
("#define MIME_E_INVALID_BODYTYPE 0x800cce2e")
66 cpp_quote
("#define MIME_E_INVALID_DELETE_TYPE 0x800cce2f")
67 cpp_quote
("#define MIME_E_OPTION_HAS_NO_VALUE 0x800cce30")
68 cpp_quote
("#define MIME_E_INVALID_CHARSET_TYPE 0x800cce31")
70 cpp_quote
("#define MIME_E_INVALID_TEXT_TYPE 0x800cce38")
72 cpp_quote
("#define MIME_E_SECURITY_NOOP 0x800cceb1")
73 cpp_quote
("#define MIME_S_SECURITY_NOOP 0x000cceb1")
75 cpp_quote
("typedef enum tagMIMEPROPID {")
76 cpp_quote
(" PID_HDR_NEWSGROUP = 2,")
77 cpp_quote
(" PID_HDR_NEWSGROUPS = 3,")
78 cpp_quote
(" PID_HDR_REFS = 4,")
79 cpp_quote
(" PID_HDR_SUBJECT = 5,")
80 cpp_quote
(" PID_HDR_FROM = 6,")
81 cpp_quote
(" PID_HDR_MESSAGEID = 7,")
82 cpp_quote
(" PID_HDR_RETURNPATH = 8,")
83 cpp_quote
(" PID_HDR_RR = 9,")
84 cpp_quote
(" PID_HDR_RETRCPTO = 10,")
85 cpp_quote
(" PID_HDR_APPARTO = 11,")
86 cpp_quote
(" PID_HDR_DATE = 12,")
87 cpp_quote
(" PID_HDR_RECEIVED = 13,")
88 cpp_quote
(" PID_HDR_REPLYTO = 14,")
89 cpp_quote
(" PID_HDR_XMAILER = 15,")
90 cpp_quote
(" PID_HDR_BCC = 16,")
91 cpp_quote
(" PID_HDR_MIMEVER = 17,")
92 cpp_quote
(" PID_HDR_CNTTYPE = 18,")
93 cpp_quote
(" PID_HDR_CNTXFER = 19,")
94 cpp_quote
(" PID_HDR_CNTID = 20,")
95 cpp_quote
(" PID_HDR_CNTDESC = 21,")
96 cpp_quote
(" PID_HDR_CNTDISP = 22,")
97 cpp_quote
(" PID_HDR_CNTBASE = 23,")
98 cpp_quote
(" PID_HDR_CNTLOC = 24,")
99 cpp_quote
(" PID_HDR_TO = 25,")
100 cpp_quote
(" PID_HDR_PATH = 26,")
101 cpp_quote
(" PID_HDR_FOLLOWUPTO = 27,")
102 cpp_quote
(" PID_HDR_EXPIRES = 28,")
103 cpp_quote
(" PID_HDR_CC = 29,")
104 cpp_quote
(" PID_HDR_CONTROL = 30,")
105 cpp_quote
(" PID_HDR_DISTRIB = 31,")
106 cpp_quote
(" PID_HDR_KEYWORDS = 32,")
107 cpp_quote
(" PID_HDR_SUMMARY = 33,")
108 cpp_quote
(" PID_HDR_APPROVED = 34,")
109 cpp_quote
(" PID_HDR_LINES = 35,")
110 cpp_quote
(" PID_HDR_XREF = 36,")
111 cpp_quote
(" PID_HDR_ORG = 37,")
112 cpp_quote
(" PID_HDR_XNEWSRDR = 38,")
113 cpp_quote
(" PID_HDR_XPRI = 39,")
114 cpp_quote
(" PID_HDR_XMSPRI = 40,")
115 cpp_quote
(" PID_PAR_FILENAME = 41,")
116 cpp_quote
(" PID_PAR_BOUNDARY = 42,")
117 cpp_quote
(" PID_PAR_CHARSET = 43,")
118 cpp_quote
(" PID_PAR_NAME = 44,")
119 cpp_quote
(" PID_ATT_FILENAME = 45,")
120 cpp_quote
(" PID_ATT_GENFNAME = 46,")
121 cpp_quote
(" PID_ATT_PRITYPE = 47,")
122 cpp_quote
(" PID_ATT_SUBTYPE = 48,")
123 cpp_quote
(" PID_ATT_NORMSUBJ = 49,")
124 cpp_quote
(" PID_ATT_ILLEGAL = 50,")
125 cpp_quote
(" PID_ATT_RENDERED = 51,")
126 cpp_quote
(" PID_ATT_SENTTIME = 52,")
127 cpp_quote
(" PID_ATT_RECVTIME = 53,")
128 cpp_quote
(" PID_ATT_PRIORITY = 54,")
129 cpp_quote
(" PID_HDR_COMMENT = 55,")
130 cpp_quote
(" PID_HDR_ENCODING = 56,")
131 cpp_quote
(" PID_HDR_ENCRYPTED = 57,")
132 cpp_quote
(" PID_HDR_OFFSETS = 58,")
133 cpp_quote
(" PID_HDR_XUNSENT = 59,")
134 cpp_quote
(" PID_HDR_ARTICLEID = 60,")
135 cpp_quote
(" PID_HDR_SENDER = 61,")
136 cpp_quote
(" PID_ATT_SERVER = 62,")
137 cpp_quote
(" PID_ATT_ACCOUNT = 63,")
138 cpp_quote
(" PID_ATT_UIDL = 64,")
139 cpp_quote
(" PID_ATT_STOREMSGID = 65,")
140 cpp_quote
(" PID_ATT_USERNAME = 66,")
141 cpp_quote
(" PID_ATT_FORWARDTO = 67,")
142 cpp_quote
(" PID_ATT_STOREFOLDERID = 68,")
143 cpp_quote
(" PID_ATT_GHOSTED = 69,")
144 cpp_quote
(" PID_ATT_UNCACHEDSIZE = 70,")
145 cpp_quote
(" PID_ATT_COMBINED = 71,")
146 cpp_quote
(" PID_ATT_AUTOINLINED = 72,")
147 cpp_quote
(" PID_HDR_DISP_NOTIFICATION_TO = 73,")
148 cpp_quote
(" PID_PAR_REPLYTYPE = 74,")
149 cpp_quote
(" PID_PAR_FORMAT = 75,")
150 cpp_quote
(" PID_ATT_FORMAT = 76,")
151 cpp_quote
(" PID_HDR_INREPLYTO = 77,")
152 cpp_quote
(" PID_ATT_ACCOUNTNAME = 78,")
153 cpp_quote
(" PID_LAST = 79,")
154 cpp_quote
("} MIMEPROPID;")
156 cpp_quote
("#define ISPIDSTR(_name) (((DWORD_PTR)(_name) >> 16) == 0)")
157 cpp_quote
("#define STRTOPID(_name) ((DWORD)((DWORD_PTR)((LPCSTR)(_name))))")
158 cpp_quote
("#define PIDTOSTR(_id) ((LPCSTR)((DWORD_PTR)(_id)))")
160 cpp_quote
("#define TYPEDID_ID(_typedid) (((ULONG)(_typedid))>>16)")
161 cpp_quote
("#define TYPEDID_MASK ((ULONG)0xffff)")
162 cpp_quote
("#define TYPEDID_TYPE(t) ((VARTYPE)((t) & TYPEDID_MASK))")
164 cpp_quote
("#define OID_ALLOW_8BIT_HEADER (0x00010000 | VT_BOOL)")
165 cpp_quote
("#define OID_CBMAX_HEADER_LINE (0x00020000 | VT_UI4)")
166 cpp_quote
("#define OID_SAVE_FORMAT (0x00030000 | VT_UI4)")
167 cpp_quote
("#define OID_WRAP_BODY_TEXT (0x00040000 | VT_BOOL)")
168 cpp_quote
("#define OID_CBMAX_BODY_LINE (0x00050000 | VT_UI4)")
169 cpp_quote
("#define OID_TRANSMIT_BODY_ENCODING (0x00060000 | VT_UI4)")
170 cpp_quote
("#define OID_TRANSMIT_TEXT_ENCODING (0x00070000 | VT_UI4)")
171 cpp_quote
("#define OID_GENERATE_MESSAGE_ID (0x00080000 | VT_BOOL)")
172 cpp_quote
("#define OID_HIDE_TNEF_ATTACHMENTS (0x000e0000 | VT_BOOL)")
173 cpp_quote
("#define OID_CLEANUP_TREE_ON_SAVE (0x000f0000 | VT_BOOL)")
174 cpp_quote
("#define OID_BODY_REMOVE_NBSP (0x00140000 | VT_BOOL)")
175 cpp_quote
("#define OID_DEFAULT_BODY_CHARSET (0x00150000 | VT_UI4)")
176 cpp_quote
("#define OID_DEFAULT_HEADER_CHARSET (0x00160000 | VT_UI4)")
177 cpp_quote
("#define OID_DBCS_ESCAPE_IS_8BIT (0x00170000 | VT_BOOL)")
178 cpp_quote
("#define OID_SECURITY_TYPE (0x00180000 | VT_UI4)")
179 cpp_quote
("#define OID_SECURITY_HWND_OWNER (0x00320000 | VT_UI4)")
180 cpp_quote
("#define OID_HEADER_RELOAD_TYPE (0x00370000 | VT_UI4)")
181 cpp_quote
("#define OID_CAN_INLINE_TEXT_BODIES (0x00380000 | VT_BOOL)")
182 cpp_quote
("#define OID_SHOW_MACBINARY (0x00390000 | VT_BOOL)")
183 cpp_quote
("#define OID_SAVEBODY_KEEPBOUNDARY (0x00400000 | VT_BOOL)")
185 cpp_quote
("#define OID_SECURITY_2KEY_CERT_BAG (0x00590000 | VT_VECTOR | VT_UI4)")
186 cpp_quote
("#define OID_SECURITY_2KEY_CERT_BAG_64 (0x00590000 | VT_VECTOR | VT_UI8)")
189 uuid(e4b28371
-83b0
-11d0
-8259-00c04fd85ab4
),
194 importlib
("stdole2.tlb");
196 DECLARE_HANDLE
(HCHARSET
);
197 DECLARE_HANDLE
(HBODY
);
198 DECLARE_HANDLE
(HHEADERROW
);
200 typedef HCHARSET
*LPHCHARSET
;
201 typedef HBODY
*LPHBODY
;
202 typedef HHEADERROW
*LPHHEADERROW
;
203 typedef DWORD TYPEDID
;
204 typedef const PROPVARIANT
*LPCPROPVARIANT
;
205 typedef const BLOB
*LPCBLOB
;
207 typedef enum tagRELOADTYPE
211 RELOAD_HEADER_APPEND
,
212 RELOAD_HEADER_REPLACE
,
215 typedef enum tagMIMESAVETYPE
221 typedef enum tagCSETAPPLYTYPE
228 typedef enum tagENCODINGTYPE
246 const SHORT IET_DECODED
= IET_BINARY
;
248 const SHORT CCHMAX_HEADER_LINE
= 1000;
251 uuid(c5588349
-7f86
-11d0
-8252-00c04fd85ab4
),
254 interface IMimeInternational
: IUnknown
256 typedef [unique] IMimeInternational
*LPMIMEINTERNATIONAL
;
257 typedef DWORD CODEPAGEID
;
259 const CODEPAGEID CP_USASCII
= 1252;
260 const CODEPAGEID CP_UNICODE
= 1200;
261 const CODEPAGEID CP_JAUTODETECT
= 50932;
262 const CODEPAGEID CP_KAUTODETECT
= 50949;
263 const CODEPAGEID CP_ISO2022JPESC
= 50221;
264 const CODEPAGEID CP_ISO2022JPSIO
= 50222;
266 const SHORT CCHMAX_CSET_NAME
= 128;
267 const SHORT CCHMAX_LANG_NAME
= 128;
268 const SHORT CCHMAX_FACE_NAME
= 128;
270 typedef struct tagINETCSETINFO
272 CHAR szName
[CCHMAX_CSET_NAME
];
274 CODEPAGEID cpiWindows
;
275 CODEPAGEID cpiInternet
;
277 } INETCSETINFO
, *LPINETCSETINFO
;
279 typedef enum tagINETLANGMASK
284 ILM_HEADERCSET
= 0x08,
286 ILM_FIXEDFONT
= 0x20,
287 ILM_VARIABLEFONT
= 0x40,
290 typedef struct tagCODEPAGEINFO
293 CODEPAGEID cpiCodePage
;
294 BOOL fIsValidCodePage
;
297 CODEPAGEID cpiFamily
;
298 CHAR szName
[CCHMAX_LANG_NAME
];
299 CHAR szBodyCset
[CCHMAX_CSET_NAME
];
300 CHAR szHeaderCset
[CCHMAX_CSET_NAME
];
301 CHAR szWebCset
[CCHMAX_CSET_NAME
];
302 CHAR szFixedFont
[CCHMAX_FACE_NAME
];
303 CHAR szVariableFont
[CCHMAX_FACE_NAME
];
304 ENCODINGTYPE ietNewsDefault
;
305 ENCODINGTYPE ietMailDefault
;
307 } CODEPAGEINFO
, *LPCODEPAGEINFO
;
309 typedef struct tagRFC1522INFO
311 BOOL fRfc1522Allowed
;
314 HCHARSET hRfc1522Cset
;
315 } RFC1522INFO
, *LPRFC1522INFO
;
317 typedef enum tagCHARSETTYPE
325 HRESULT SetDefaultCharset
(
326 [in] HCHARSET hCharset
);
327 HRESULT GetDefaultCharset
(
328 [out] LPHCHARSET phCharset
);
329 HRESULT GetCodePageCharset
(
330 [in] CODEPAGEID cpiCodePage
,
331 [in] CHARSETTYPE ctCsetType
,
332 [out] LPHCHARSET phCharset
);
334 [in] LPCSTR pszCharset
,
335 [out] LPHCHARSET phCharset
);
336 HRESULT GetCharsetInfo
(
337 [in] HCHARSET hCharset
,
338 [in, out] LPINETCSETINFO pCsetInfo
);
339 HRESULT GetCodePageInfo
(
340 [in] CODEPAGEID cpiCodePage
,
341 [in, out] LPCODEPAGEINFO pCodePageInfo
);
342 HRESULT CanConvertCodePages
(
343 [in] CODEPAGEID cpiSource
,
344 [in] CODEPAGEID cpiDest
);
345 HRESULT DecodeHeader
(
346 [in] HCHARSET hCharset
,
348 [in, out] LPPROPVARIANT pDecoded
,
349 [in, out] LPRFC1522INFO pRfc1522Info
);
350 HRESULT EncodeHeader
(
351 [in] HCHARSET hCharset
,
352 [in] LPPROPVARIANT pData
,
353 [out] LPSTR
*ppszEncoded
,
354 [in, out] LPRFC1522INFO pRfc1522Info
);
355 HRESULT ConvertBuffer
(
356 [in] CODEPAGEID cpiSource
,
357 [in] CODEPAGEID cpiDest
,
359 [in, out] LPBLOB pOut
,
360 [out] ULONG
*pcbRead
);
361 HRESULT ConvertString
(
362 [in] CODEPAGEID cpiSource
,
363 [in] CODEPAGEID cpiDest
,
364 [in] LPPROPVARIANT pIn
,
365 [in, out] LPPROPVARIANT pOut
);
366 HRESULT MLANG_ConvertInetReset
(void);
367 HRESULT MLANG_ConvertInetString
(
368 [in] CODEPAGEID cpiSource
,
369 [in] CODEPAGEID cpiDest
,
371 [in] int *pnSizeOfSource
,
372 [in,out,unique] LPSTR pDestination
,
373 [in] int *pnDstSize
);
374 HRESULT Rfc1522Decode
(
375 [in] LPCSTR pszValue
,
376 [in,ref] LPSTR pszCharset
,
378 [out] LPSTR
*ppszDecoded
);
379 HRESULT Rfc1522Encode
(
380 [in] LPCSTR pszValue
,
381 [in] HCHARSET hCharset
,
382 [out] LPSTR
*ppszEncoded
);
386 uuid(c5588353
-7f86
-11d0
-8252-00c04fd85ab4
),
389 interface IMimeSecurity
: IUnknown
391 typedef [unique] IMimeSecurity
*LPMIMESECURITY
;
393 cpp_quote
("#ifdef __WINE_WINCRYPT_H")
394 cpp_quote
("typedef PCCERT_CONTEXT PCX509CERT;")
396 typedef const void *PCX509CERT
;
397 typedef void *HCERTSTORE
;
400 typedef BLOB THUMBBLOB
;
401 typedef void *HCAPICERTSTORE
;
403 cpp_quote
("#define MST_NONE 0x00000000")
404 cpp_quote
("#define MST_THIS_SIGN 0x00000001")
405 cpp_quote
("#define MST_THIS_ENCRYPT 0x00000002")
406 cpp_quote
("#define MST_BLOB_FLAG 0x00000004")
407 cpp_quote
("#define MST_THIS_BLOBSIGN (MST_BLOB_FLAG | MST_THIS_SIGN)")
408 cpp_quote
("#define MST_CHILD_SIGN 0x00000100")
409 cpp_quote
("#define MST_CHILD_ENCRYPT 0x00000200")
410 cpp_quote
("#define MST_SUBMSG_SIGN 0x00001000")
411 cpp_quote
("#define MST_SUBMSG_ENCRYPT 0x00002000")
412 cpp_quote
("#define MST_RECEIPT_REQUEST 0x00010000")
413 cpp_quote
("#define MST_CLASS_SMIME_V1 0x00000000")
414 cpp_quote
("#define MST_CLASS_PGP 0x01000000")
416 typedef enum tagCERTSTATE
419 CERTIFICATE_NOT_PRESENT
,
421 CERTIFICATE_CHAIN_TOO_LONG
,
422 CERTIFICATE_MISSING_ISSUER
,
423 CERTIFICATE_CRL_LISTED
,
424 CERTIFICATE_NOT_TRUSTED
,
431 typedef enum tagCERTNAMETYPE
438 typedef enum tagCERTDATAID
444 typedef struct tagX509CERTRESULT
449 } X509CERTRESULT
, *PX509CERTRESULT
;
450 typedef const X509CERTRESULT
*PCX509CERTRESULT
;
452 HRESULT InitNew
(void);
454 HRESULT CheckInit
(void);
456 HRESULT EncodeMessage
(
457 [in] IMimeMessageTree */
*const*/ pTree
,
461 [in] IMimeMessageTree */
*const*/ pTree
,
462 [in] HBODY hEncodeRoot
,
465 HRESULT DecodeMessage
(
466 [in] IMimeMessageTree */
*const*/ pTree
,
470 [in] IMimeMessageTree */
*const*/ pTree
,
471 [in] HBODY hDecodeRoot
,
474 HRESULT EnumCertificates
(
475 [in] HCAPICERTSTORE hc
,
477 [in] PCX509CERT pPrev
,
478 [out] PCX509CERT
*ppCert
);
480 HRESULT GetCertificateName
(
481 [in] const PCX509CERT pX509Cert
,
482 [in] const CERTNAMETYPE cn
,
483 [out] LPSTR
*ppszName
);
485 HRESULT GetMessageType
(
486 [in] const HWND hwndParent
,
487 [in] IMimeBody */
*const*/ pBody
,
488 [out] DWORD */
*const*/ pdwSecType
);
491 [in] const PCX509CERT pX509Cert
,
492 [in] const CERTDATAID dataid
,
493 [out, ref] LPPROPVARIANT pValue
);
497 uuid(fd853cd1
-7f86
-11d0
-8252-00c04fd85ab4
),
500 interface IMimeHeaderTable
: IPersistStream
502 /* FIXME: fill this in */
506 uuid(fd853cec
-7f86
-11d0
-8252-00c04fd85ab4
),
509 interface IMimePropertySchema
: IUnknown
511 typedef [unique] IMimePropertySchema
*LPMIMEPROPERTYSCHEMA
;
513 typedef enum tagMIMEPROPFLAGS
518 MPF_HASPARAMS
= 0x08,
523 HRESULT RegisterProperty
(
524 [in] const char *name
,
526 [in] DWORD rownumber
,
527 [in] VARTYPE vtdefault
,
528 [out] DWORD
*propid
);
530 HRESULT ModifyProperty
(
531 [in] const char *name
,
533 [in] DWORD rownumber
,
534 [in] VARTYPE vtdefault
);
536 HRESULT GetPropertyId
(
537 [in] const char *name
,
538 [out] DWORD
*propid
);
540 HRESULT GetPropertyName
(
544 HRESULT RegisterAddressType
(
545 [in] const char *name
,
546 [out] DWORD
*adrtype
);
550 uuid(fd853cd3
-7f86
-11d0
-8252-00c04fd85ab4
),
553 interface IMimePropertySet
: IPersistStreamInit
555 typedef [unique] IMimePropertySet
*LPMIMEPROPERTYSET
;
557 cpp_quote
("#define PDF_ENCODED 0x00000001")
558 cpp_quote
("#define PDF_NAMEINDATA 0x00000002")
559 cpp_quote
("#define PDF_HEADERFORMAT (0x00000004 | PDF_ENCODED)")
560 cpp_quote
("#define PDF_NOCOMMENTS 0x00000008")
561 cpp_quote
("#define PDF_SAVENOENCODE 0x00000010")
562 cpp_quote
("#define PDF_VECTOR 0x00000020")
564 typedef struct tagMIMEPARAMINFO
568 } MIMEPARAMINFO
, *LPMIMEPARAMINFO
;
570 typedef enum tagPROPINFOMASK
573 PIM_ENCODINGTYPE
= 0x02,
574 PIM_ROWNUMBER
= 0x04,
578 PIM_VTDEFAULT
= 0x40,
582 typedef struct tagMIMEPROPINFO
586 ENCODINGTYPE ietEncoding
;
593 } MIMEPROPINFO
, *LPMIMEPROPINFO
;
594 typedef const MIMEPROPINFO
*LPCMIMEPROPINFO
;
598 [in,out] LPMIMEPROPINFO pInfo
);
602 [in] LPCMIMEPROPINFO pInfo
);
604 cpp_quote
("#ifdef WINE_NO_UNICODE_MACROS")
605 cpp_quote
("#undef GetProp")
606 cpp_quote
("#undef SetProp")
607 cpp_quote
("#undef EnumProps")
612 [in,out] LPPROPVARIANT pValue
);
617 [in] LPCPROPVARIANT pValue
);
622 [in] LPPROPVARIANT pValue
);
625 [in] LPCSTR pszName
);
629 [in,unique] LPCSTR
*prgszName
,
630 [in] IMimePropertySet
*pPropertySet
);
634 [in] LPCSTR
*prgszName
,
635 [in] IMimePropertySet
*pPropertySet
);
637 HRESULT DeleteExcept
(
639 [in] LPCSTR
*prgszName
);
643 [in] LPCSTR pszCriteria
,
644 [in] boolean fSubString
,
645 [in] boolean fCaseSensitive
);
648 [out] LPHCHARSET phCharset
);
651 [in] HCHARSET hCharset
,
652 [in] CSETAPPLYTYPE applytype
);
654 HRESULT GetParameters
(
656 [out] ULONG
*pcParams
,
657 [out] LPMIMEPARAMINFO
*pprgParam
);
659 HRESULT IsContentType
(
660 [in] LPCSTR pszPriType
,
661 [in,unique] LPCSTR pszSubType
);
663 HRESULT BindToObject
(
665 [out,iid_is(riid
)] void **ppvObject
);
668 [out] IMimePropertySet
**ppPropertySet
);
671 [in] const TYPEDID oid
,
672 [in] LPCPROPVARIANT pValue
);
675 [in] const TYPEDID oid
,
676 [in,out] LPPROPVARIANT pValue
);
678 cpp_quote
("#define EPF_NONAME 0x00000001")
682 [out] IMimeEnumProperties
**ppEnum
);
687 uuid(c558834a
-7f86
-11d0
-8252-00c04fd85ab4
),
690 interface IMimeAddressTable
: IUnknown
692 typedef [unique] IMimeAddressTable
*LPMIMEADDRESSTABLE
;
694 DECLARE_HANDLE
(HADDRESS
);
695 typedef HADDRESS
*LPHADDRESS
;
696 typedef DWORD IADDRESSTYPE
;
698 typedef enum tagADDRESSFORMAT
700 AFT_DISPLAY_FRIENDLY
,
708 typedef struct tagADDRESSPROPS
712 ENCODINGTYPE ietFriendly
;
720 THUMBBLOB tbEncryption
;
724 } ADDRESSPROPS
, *LPADDRESSPROPS
;
726 typedef struct tagADDRESSLIST
729 LPADDRESSPROPS prgAdr
;
730 } ADDRESSLIST
, *LPADDRESSLIST
;
732 /* FIXME: fill this in */
736 uuid(ee519f11
-851a
-11d0
-8252-00c04fd85ab4
),
739 interface IMimeWebDocument
: IUnknown
741 /* FIXME: fill this in */
745 uuid(c558834c
-7f86
-11d0
-8252-00c04fd85ab4
),
748 interface IMimeBody
: IMimePropertySet
750 typedef [unique] IMimeBody
*LPMIMEBODY
;
752 typedef enum tagIMSGBODYTYPE
761 typedef struct tagBODYOFFSETS
763 DWORD cbBoundaryStart
;
767 } BODYOFFSETS
, *LPBODYOFFSETS
;
769 typedef struct tagTRANSMITINFO
771 ENCODINGTYPE ietCurrent
;
772 ENCODINGTYPE ietXmitMime
;
773 ENCODINGTYPE ietXmit822
;
779 } TRANSMITINFO
, *LPTRANSMITINFO
;
782 [in] IMSGBODYTYPE bodytype
);
784 HRESULT SetDisplayName
(
785 [in] LPCSTR pszDisplay
);
787 HRESULT GetDisplayName
(
788 [out] LPSTR
*ppszDisplay
);
791 [out] LPBODYOFFSETS pOffsets
);
793 HRESULT GetCurrentEncoding
(
794 [out] ENCODINGTYPE
*pietEncoding
);
796 HRESULT SetCurrentEncoding
(
797 [in] ENCODINGTYPE ietEncoding
);
799 HRESULT GetEstimatedSize
(
800 [in] ENCODINGTYPE ietEncoding
,
801 [out] ULONG
*pcbSize
);
804 [in] ENCODINGTYPE ietEncoding
,
805 [in] IStream
*pStream
);
808 [in] ENCODINGTYPE ietEncoding
,
809 [out] IStream
**ppStream
);
812 [in] ENCODINGTYPE ietEncoding
,
813 [in,unique] LPCSTR pszPriType
,
814 [in,unique] LPCSTR pszSubType
,
816 [in,iid_is(riid
)] LPVOID pvObject
);
818 HRESULT EmptyData
(void);
821 [in] IMimeBody
*pBody
);
823 HRESULT GetTransmitInfo
(
824 [in,out] LPTRANSMITINFO pTransmitInfo
);
827 [in] ENCODINGTYPE ietEncoding
,
828 [in] LPCSTR pszFilePath
);
831 [out] LPHBODY phBody
);
836 uuid(fd853cd4
-7f86
-11d0
-8252-00c04fd85ab4
),
839 interface IMimeMessageTree
: IPersistStreamInit
841 typedef [unique] IMimeMessageTree
*LPMIMEMESSAGETREE
;
843 const HBODY HBODY_ROOT
= (HBODY
)-1;
845 typedef enum tagBODYLOCATION
855 typedef struct tagFINDBODY
860 } FINDBODY
, *LPFINDBODY
;
862 HRESULT GetMessageSource
(
863 [out] IStream
**ppStream
,
866 HRESULT GetMessageSize
(
867 [out] ULONG
*pcbSize
,
870 HRESULT LoadOffsetTable
(
871 [in] IStream
*pStream
);
873 HRESULT SaveOffsetTable
(
874 [in] IStream
*pStream
,
878 [out] DWORD
*pdwFlags
);
883 HRESULT HandsOffStorage
();
885 HRESULT BindToObject
(
886 [in] const HBODY hBody
,
888 [out, iid_is(riid
)] void **ppvObject
);
893 [in] IStream
*pStream
);
896 [in] BODYLOCATION location
,
898 [out] LPHBODY phBody
);
901 [in] BODYLOCATION location
,
903 [out] LPHBODY phBody
);
911 [in] BODYLOCATION location
);
915 [in] boolean fRecurse
,
916 [out] ULONG
*pcBodies
);
919 [in, out] LPFINDBODY pFindBody
,
920 [out] LPHBODY phBody
);
923 [in, out] LPFINDBODY pFindBody
,
924 [out] LPHBODY phBody
);
931 [out] LPHBODY phBody
);
935 [in] LPCSTR pszSubType
,
936 [out] LPHBODY phMultipart
);
938 HRESULT GetBodyOffsets
(
940 [in, out] LPBODYOFFSETS pOffsets
);
943 [out] LPHCHARSET phCharset
);
946 [in] HCHARSET hCharset
,
947 [in] CSETAPPLYTYPE applytype
);
951 [in] IMSGBODYTYPE bodytype
);
953 HRESULT IsContentType
(
955 [in] LPCSTR pszPriType
,
956 [in] LPCSTR pszSubType
);
958 HRESULT QueryBodyProp
(
961 [in] LPCSTR pszCriteria
,
962 [in] boolean fSubString
,
963 [in] boolean fCaseSensitive
);
969 [in, out] LPPROPVARIANT pValue
);
975 [in] LPCPROPVARIANT pValue
);
977 HRESULT DeleteBodyProp
(
979 [in] LPCSTR pszName
);
982 [in] const TYPEDID oid
,
983 [in] LPCPROPVARIANT pValue
);
986 [in] const TYPEDID oid
,
987 [in, out] LPPROPVARIANT pValue
);
991 uuid(fd853cd5
-7f86
-11d0
-8252-00c04fd85ab4
),
994 interface IMimeMessage
: IMimeMessageTree
996 typedef [unique] IMimeMessage
*LPMIMEMESSAGE
;
998 typedef DWORD TEXTTYPE
;
1000 typedef enum tagIMSGFLAGS
1002 IMF_ATTACHMENTS
= 0x00000001,
1003 IMF_MULTIPART
= 0x00000002,
1004 IMF_SUBMULTIPART
= 0x00000004,
1005 IMF_MIME
= 0x00000008,
1006 IMF_HTML
= 0x00000010,
1007 IMF_PLAIN
= 0x00000020,
1008 IMF_PARTIAL
= 0x00000040,
1009 IMF_SIGNED
= 0x00000080,
1010 IMF_ENCRYPTED
= 0x00000100,
1011 IMF_TNEF
= 0x00000200,
1012 IMF_MHTML
= 0x00000400,
1013 IMF_SECURE
= 0x00000800,
1014 IMF_TEXT
= 0x00001000,
1015 IMF_CSETTAGGED
= 0x00002000,
1016 IMF_NEWS
= 0x00004000,
1017 IMF_VOICEMAIL
= 0x00008000,
1018 IMF_HASVCARD
= 0x00010000,
1019 IMF_RFC1154
= 0x00020000,
1022 typedef enum tagIMSGPRIORITY
1025 IMSG_PRI_NORMAL
= 3,
1029 cpp_quote
("#define WPF_HTML 0x00000001")
1030 cpp_quote
("#define WPF_AUTOINLINE 0x00000002")
1031 cpp_quote
("#define WPF_SLIDESHOW 0x00000004")
1032 cpp_quote
("#define WPF_ATTACHLINKS 0x00000008")
1033 cpp_quote
("#define WPF_IMAGESONLY 0x00000010")
1034 cpp_quote
("#define WPF_NOMETACHARSET 0x00000020")
1036 typedef struct tagWEPAGEOPTIONS
1042 } WEBPAGEOPTIONS
, *LPWEBPAGEOPTIONS
;
1044 cpp_quote
("#define TXT_PLAIN 1")
1045 cpp_quote
("#define TXT_HTML 2")
1047 HRESULT CreateWebPage
(
1048 [in] IStream
*pRootStm
,
1049 [in] LPWEBPAGEOPTIONS pOptions
,
1050 [in] IMimeMessageCallback
*pCallback
,
1051 [out] IMoniker
**ppMoniker
);
1054 [in] LPCSTR pszName
,
1056 [in,out] LPPROPVARIANT pValue
);
1059 [in] LPCSTR pszName
,
1061 [in] LPCPROPVARIANT pValue
);
1064 [in] LPCSTR pszName
);
1067 [in] LPCSTR pszName
,
1068 [in] LPCSTR pszCriteria
,
1069 [in] boolean fSubString
,
1070 [in] boolean fCaseSensitive
);
1072 HRESULT GetTextBody
(
1073 [in] DWORD dwTxtType
,
1074 [in] ENCODINGTYPE ietEncoding
,
1075 [out] IStream
**pStream
,
1076 [out] LPHBODY phBody
);
1078 HRESULT SetTextBody
(
1079 [in] DWORD dwTxtType
,
1080 [in] ENCODINGTYPE ietEncoding
,
1081 [in] HBODY hAlternative
,
1082 [in] IStream
*pStream
,
1083 [out] LPHBODY phBody
);
1085 HRESULT AttachObject
(
1087 [in, iid_is(riid
)] void *pvObject
,
1088 [out] LPHBODY phBody
);
1091 [in] LPCSTR pszFilePath
,
1092 [in] IStream
*pstmFile
,
1093 [out] LPHBODY phBody
);
1096 [in] LPCSTR pszBase
,
1099 [in] IStream
*pstmURL
,
1100 [out] LPSTR
*ppszCIDURL
,
1101 [out] LPHBODY phBody
);
1103 HRESULT GetAttachments
(
1104 [out] ULONG
*pcAttach
,
1105 [out] LPHBODY
*pprghAttach
);
1107 HRESULT GetAddressTable
(
1108 [out] IMimeAddressTable
**ppTable
);
1111 [in, out] LPADDRESSPROPS pAddress
);
1113 HRESULT GetAddressTypes
(
1114 [in] DWORD dwAdrTypes
,
1116 [in, out] LPADDRESSLIST pList
);
1118 HRESULT GetAddressFormat
(
1119 [in] DWORD dwAdrTypes
,
1120 [in] ADDRESSFORMAT format
,
1121 [out] LPSTR
*ppszFormat
);
1123 HRESULT EnumAddressTypes
(
1124 [in] DWORD dwAdrTypes
,
1126 [out] IMimeEnumAddressTypes
**ppEnum
);
1128 HRESULT SplitMessage
(
1129 [in] ULONG cbMaxPart
,
1130 [out] IMimeMessageParts
**ppParts
);
1132 HRESULT GetRootMoniker
(
1133 [out] IMoniker
**ppMoniker
);
1137 uuid(761aa741
-7bda
-11d1
-8aa9
-00c04fb951f3
),
1140 interface IMimeMessageCallback
: IUnknown
1142 HRESULT OnWebPageSplitter
(
1143 [in] DWORD cInlined
,
1144 [in] IStream
*ppStream
);
1148 uuid(de4ad8da
-555f
-11d1
-8dd0
-00c04fb951f9
),
1151 interface IPersistMime
: IPersist
1153 /* FIXME: fill this in */
1157 uuid(c558834f
-7f86
-11d0
-8252-00c04fd85ab4
),
1160 interface IMimeMessageParts
: IUnknown
1162 /* FIXME: fill this in */
1166 uuid(c558834d
-7f86
-11d0
-8252-00c04fd85ab4
),
1169 interface IMimeEnumHeaderRows
: IUnknown
1171 typedef struct tagENUMHEADERROW
1177 DWORD_PTR dwReserved
;
1178 } ENUMHEADERROW
, *LPENUMHEADERROW
;
1180 /* FIXME: fill this in */
1184 uuid(fd853cee
-7f86
-11d0
-8252-00c04fd85ab4
),
1187 interface IMimeEnumProperties
: IUnknown
1189 typedef [unique] IMimeEnumProperties
*LPMIMEENUMPROPERTIES
;
1191 typedef struct tagENUMPROPERTY
1196 } ENUMPROPERTY
, *LPENUMPROPERTY
;
1200 [in, out] LPENUMPROPERTY prgProp
,
1201 [out] ULONG
*pcFetched
);
1206 HRESULT Reset
(void);
1209 [out] IMimeEnumProperties
**ppEnum
);
1212 [out] ULONG
*pcItems
);
1217 uuid(c5588354
-7f86
-11d0
-8252-00c04fd85ab4
),
1220 interface IMimeEnumAddressTypes
: IUnknown
1222 /* FIXME: fill this in */
1226 uuid(c5588350
-7f86
-11d0
-8252-00c04fd85ab4
),
1229 interface IMimeEnumMessageParts
: IUnknown
1231 /* FIXME: fill this in */
1235 uuid(64577981-86d7
-11d1
-bdfc
-00c04fa31009
),
1238 interface IHashTable
: IUnknown
1240 /* FIXME: fill this in */
1244 uuid(c5588351
-7f86
-11d0
-8252-00c04fd85ab4
),
1247 interface IMimeAllocator
: IMalloc
1249 typedef [unique] IMimeAllocator
*LPMIMEALLOCATOR
;
1251 HRESULT FreeParamInfoArray
(
1253 [in] LPMIMEPARAMINFO prgParam
,
1254 [in] boolean fFreeArray
);
1256 HRESULT FreeAddressList
(
1257 [in,out] LPADDRESSLIST pList
);
1259 HRESULT FreeAddressProps
(
1260 [in,out] LPADDRESSPROPS pAddress
);
1262 HRESULT ReleaseObjects
(
1263 [in] ULONG cObjects
,
1264 [in] IUnknown
**prgpUnknown
,
1265 [in] boolean fFreeArray
);
1267 HRESULT FreeEnumHeaderRowArray
(
1269 [in] LPENUMHEADERROW prgRow
,
1270 [in] boolean fFreeArray
);
1272 HRESULT FreeEnumPropertyArray
(
1274 [in] LPENUMPROPERTY prgProp
,
1275 [in] boolean fFreeArray
);
1277 HRESULT FreeThumbprint
(
1278 [in] THUMBBLOB
*pthumbprint
);
1280 HRESULT PropVariantClear
(
1281 [in] LPPROPVARIANT pProp
);
1286 uuid(feceaffd
-c441
-11d1
-960e-00c04fbd7c09
),
1289 interface IMimeObjResolver
: IUnknown
1291 /* FIXME: fill this in */
1295 uuid(b0d17fc2
-7bc4
-11d1
-bdfa
-00c04fa31009
),
1298 interface IFontCache
: IUnknown
1300 /* FIXME: fill this in */
1304 uuid(b0d17fc5
-7bc4
-11d1
-bdfa
-00c04fa31009
),
1307 interface IFontCacheNotify
: IUnknown
1309 /* FIXME: fill this in */
1313 uuid(70183210-7b36
-11d2
-8c12
-00c04fa31009
),
1316 interface IMimeEditTag
: IUnknown
1318 /* FIXME: fill this in */
1322 uuid(d09ee528
-7b38
-11d2
-8c12
-00c04fa31009
),
1325 interface IMimeEditTagCollection
: IUnknown
1327 /* FIXME: fill this in */
1331 uuid(ba715ae0
-a740
-11d2
-8b22
-0080c76b34c6
),
1334 interface IMimeSecurityCallback
: IUnknown
1336 /* FIXME: fill this in */
1338 cpp_quote
("#define CMS_RECIPIENT_INFO_TYPE_UNKNOWN 0")
1339 cpp_quote
("#define CMS_RECIPIENT_INFO_TYPE_KEYTRANS 1")
1340 cpp_quote
("#define CMS_RECIPIENT_INFO_TYPE_KEYAGREE 2")
1341 cpp_quote
("#define CMS_RECIPIENT_INFO_TYPE_MAIL_LIST 3")
1343 cpp_quote
("#define CMS_RECIPIENT_INFO_PUBKEY_CERTIFICATE 0")
1344 cpp_quote
("#define CMS_RECIPIENT_INFO_PUBKEY_KEYTRANS 1")
1345 cpp_quote
("#define CMS_RECIPIENT_INFO_PUBKEY_PROVIDER 2")
1346 cpp_quote
("#define CMS_RECIPIENT_INFO_PUBKEY_EPHEMERAL_KEYAGREE 3")
1347 cpp_quote
("#define CMS_RECIPIENT_INFO_PUBKEY_STATIC_KEYAGREE 4")
1349 cpp_quote
("#define CMS_RECIPIENT_INFO_KEYID_CERTIFICATE 0")
1350 cpp_quote
("#define CMS_RECIPIENT_INFO_KEYID_ISSUERSERIAL 1")
1351 cpp_quote
("#define CMS_RECIPIENT_INFO_KEYID_KEY_ID 2")
1356 cpp_quote
("#ifdef __cplusplus")
1357 cpp_quote
(" extern \"C\" {")
1361 cpp_quote
("HRESULT WINAPI MimeOleSetCompatMode(DWORD);")
1362 cpp_quote
("HRESULT WINAPI MimeOleContentTypeFromUrl(LPCSTR,LPCSTR,LPSTR*);")
1363 cpp_quote
("HRESULT WINAPI MimeOleParseMhtmlUrl(LPSTR,LPSTR*,LPSTR*);")
1364 cpp_quote
("HRESULT WINAPI MimeOleObjectFromUrl(LPCSTR,BOOL,REFIID,LPVOID*,IUnknown**);")
1365 cpp_quote
("HRESULT WINAPI MimeOleObjectFromMoniker(BINDF,IMoniker*,IBindCtx*,REFIID,LPVOID*,IMoniker**);")
1366 cpp_quote
("HRESULT WINAPI MimeOleCombineURL(LPCSTR,ULONG,LPCSTR,ULONG,BOOL,LPSTR*);")
1367 cpp_quote
("HRESULT WINAPI MimeOleGetSubjectFileName(IMimePropertySet*,ULONG*,ULONG*,LPSTR,ULONG);")
1368 cpp_quote
("HRESULT WINAPI MimeOleCreateWebDocument(LPCSTR,LPCSTR,IMimeWebDocument**);")
1369 cpp_quote
("HRESULT WINAPI MimeOleGetRelatedSection(IMimeMessageTree*,boolean,LPHBODY,boolean*);")
1370 cpp_quote
("HRESULT WINAPI MimeOleGetMixedSection(IMimeMessageTree*,boolean,LPHBODY,boolean*);")
1371 cpp_quote
("HRESULT WINAPI MimeOleGetAlternativeSection(IMimeMessageTree*,LPHBODY,boolean*);")
1372 cpp_quote
("HRESULT WINAPI MimeOleGenerateCID(LPSTR,ULONG,boolean);")
1373 cpp_quote
("HRESULT WINAPI MimeOleGenerateMID(LPSTR,ULONG,boolean);")
1374 cpp_quote
("HRESULT WINAPI MimeOleCreateByteStream(IStream**);")
1375 cpp_quote
("HRESULT WINAPI MimeOlGetPropertySchema(IMimePropertySchema**);")
1376 cpp_quote
("HRESULT WINAPI MimeOleQueryString(LPCSTR,LPCSTR,boolean,boolean);")
1377 cpp_quote
("HRESULT WINAPI MimeOleGetPropA(IMimePropertySet*,LPCSTR,DWORD,LPSTR*);")
1378 cpp_quote
("HRESULT WINAPI MimeOleSetPropA(IMimePropertySet*,LPCSTR,DWORD,LPCSTR);")
1379 cpp_quote
("HRESULT WINAPI MimeOleGetPropW(IMimePropertySet*,LPCSTR,DWORD,LPWSTR*);")
1380 cpp_quote
("HRESULT WINAPI MimeOleSetPropW(IMimePropertySet*,LPCSTR,DWORD,LPCWSTR);")
1381 cpp_quote
("HRESULT WINAPI MimeOleGetBodyPropA(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPSTR*);")
1382 cpp_quote
("HRESULT WINAPI MimeOleSetBodyPropA(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPCSTR);")
1383 cpp_quote
("HRESULT WINAPI MimeOleGetBodyPropW(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPWSTR*);")
1384 cpp_quote
("HRESULT WINAPI MimeOleSetBodyPropW(IMimeMessageTree*,HBODY,LPCSTR,DWORD,LPCWSTR);")
1385 cpp_quote
("HRESULT WINAPI MimeOleCreateHeaderTable(IMimeHeaderTable**);")
1386 cpp_quote
("HRESULT WINAPI MimeOleVariantFree(LPPROPVARIANT);")
1387 cpp_quote
("HRESULT WINAPI MimeOleVariantCopy(LPPROPVARIANT,LPPROPVARIANT);")
1388 cpp_quote
("HRESULT WINAPI MimeOleGetExtClassId(LPCSTR,LPCLSID);")
1389 cpp_quote
("HRESULT WINAPI MimeOleEncodeHeader(HCHARSET,LPPROPVARIANT,LPSTR*,LPRFC1522INFO);")
1390 cpp_quote
("HRESULT WINAPI MimeOleDecodeHeader(HCHARSET,LPCSTR,LPPROPVARIANT,LPRFC1522INFO);")
1391 cpp_quote
("HRESULT WINAPI MimeOleRfc1522Decode(LPCSTR,LPSTR,ULONG,LPSTR*);")
1392 cpp_quote
("HRESULT WINAPI MimeOleRfc1522Encode(LPCSTR,HCHARSET,LPSTR*);")
1393 cpp_quote
("HRESULT WINAPI MimeOleGetInternat(IMimeInternational**);")
1394 cpp_quote
("HRESULT WINAPI MimeOleFindCharset(LPCSTR,LPHCHARSET);")
1395 cpp_quote
("HRESULT WINAPI MimeOleGetCharsetInfo(HCHARSET,LPINETCSETINFO);")
1396 cpp_quote
("HRESULT WINAPI MimeOleGetCodePageInfo(HCHARSET,LPCODEPAGEINFO);")
1397 cpp_quote
("HRESULT WINAPI MimeOleGetDefaultCharset(LPHCHARSET);")
1398 cpp_quote
("HRESULT WINAPI MimeOleSetDefaultCharset(HCHARSET);")
1399 cpp_quote
("HRESULT WINAPI MimeOleGetCodePageCharset(CODEPAGEID,CHARSETTYPE,LPHCHARSET);")
1400 cpp_quote
("HRESULT WINAPI MimeOleCreateVirtualStream(IStream**);")
1401 cpp_quote
("HRESULT WINAPI MimeOleOpenFileStream(LPCSTR,DWORD,DWORD,IStream**);")
1402 cpp_quote
("HRESULT WINAPI MimeOleIsTnefStream(IStream*);")
1403 cpp_quote
("HRESULT WINAPI MimeOleGenerateFileName(LPCSTR,LPCSTR,LPCSTR,LPSTR*);")
1404 cpp_quote
("HRESULT WINAPI MimeOleGetFileExtension(LPCSTR,LPSTR,ULONG);")
1405 cpp_quote
("HRESULT WINAPI MimeOleCreateSecurity(IMimeSecurity**);")
1406 cpp_quote
("HRESULT WINAPI MimeOleInetDateToFileTime(LPCSTR,LPFILETIME);")
1407 cpp_quote
("HRESULT WINAPI MimeOleFileTimeToInetDate(LPFILETIME,LPSTR,ULONG);")
1408 cpp_quote
("HRESULT WINAPI MimeOleCreateMessageParts(IMimeMessageParts**);")
1409 cpp_quote
("HRESULT WINAPI MimeOleGetAllocator(IMimeAllocator**);")
1410 cpp_quote
("HRESULT WINAPI MimeOleParseRfc822Address(DWORD,ENCODINGTYPE,LPCSTR,LPADDRESSLIST);")
1411 cpp_quote
("HRESULT WINAPI MimeOleCreateMessage(IUnknown*,IMimeMessage**);")
1412 cpp_quote
("HRESULT WINAPI MimeOleMergePartialHeaders(IStream*,IStream*);")
1413 cpp_quote
("HRESULT WINAPI MimeOleEscapeString(CODEPAGEID,LPCSTR,LPSTR*);")
1414 cpp_quote
("HRESULT WINAPI MimeOleGetExtContentType(LPCSTR,LPSTR*);")
1415 cpp_quote
("HRESULT WINAPI MimeOleGetContentTypeExt(LPCSTR,LPSTR*);")
1416 cpp_quote
("HRESULT WINAPI MimeOleGetFileInfo(LPSTR,LPSTR*,LPSTR*,LPSTR*,LPSTR*,LPSTR*);")
1417 cpp_quote
("HRESULT WINAPI MimeOleCreateBody(IMimeBody**);")
1418 cpp_quote
("HRESULT WINAPI MimeOleCreatePropertySet(IUnknown*,IMimePropertySet**);")
1419 cpp_quote
("HRESULT WINAPI MimeOleCreateMessageTree(IUnknown*,IMimeMessageTree**);")
1420 cpp_quote
("HRESULT WINAPI MimeOleGetCertsFromThumbprints(THUMBBLOB*,X509CERTRESULT*,const HCERTSTORE*,DWORD);")
1421 cpp_quote
("HRESULT WINAPI MimeOleSplitMessage(IMimeMessage*,ULONG,IMimeMessageParts**);")
1422 cpp_quote
("HRESULT WINAPI MimeOleClearDirtyTree(IMimeMessageTree*);")
1423 cpp_quote
("HRESULT WINAPI MimeOleConvertEnrichedToHTML(CODEPAGEID,IStream*,IStream*);")
1424 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapsToDlg(LPBYTE,DWORD,DWORD,PCX509CERT*,HWND,DWORD,DWORD,DWORD);")
1425 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapsFromDlg(HWND,DWORD,DWORD,DWORD,LPBYTE,DWORD*);")
1426 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapInit(LPBYTE,DWORD,LPVOID*);")
1427 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapAddSMimeCap(LPBYTE,DWORD,LPVOID);")
1428 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapAddCert(LPBYTE,DWORD,BOOL,LPVOID);")
1429 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapGetEncAlg(LPVOID,LPBYTE,DWORD*,DWORD*);")
1430 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapGetHashAlg(LPVOID,LPBYTE,DWORD*,DWORD*);")
1431 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapRelease(LPVOID);")
1432 cpp_quote
("HRESULT WINAPI MimeOleAlgNameFromSMimeap(LPBYTE,DWORD,LPCSTR*);")
1433 cpp_quote
("HRESULT WINAPI MimeOleAlgStrengthFromSMimeCap(LPBYTE,DWORD,BOOL,DWORD*);")
1434 cpp_quote
("HRESULT WINAPI MimeOleSMimeCapsFull(LPVOID,BOOL,BOOL,LPBYTE,DWORD*);")
1435 cpp_quote
("HRESULT WINAPI MimeOleCreateHashTable(DWORD,BOOL,IHashTable**);")
1436 cpp_quote
("HRESULT WINAPI MimeOleStripHeaders(IMimeMessage*,HBODY,LPCSTR,LPCSTR,IStream**);")
1438 cpp_quote
("HRESULT WINAPI MimeEditViewSource(HWND,IMimeMessage*);")
1439 cpp_quote
("HRESULT WINAPI MimeEditIsSafeToRun(HWND,LPCSTR);")
1440 cpp_quote
("HRESULT WINAPI MimeEditVerifyTrust(HWND,LPCSTR,LPCSTR);")
1441 cpp_quote
("HRESULT WINAPI MimeEditCreateMimeDocument(IUnknown*,IMimeMessage*,DWORD,IMimeMessage**);")
1442 cpp_quote
("HRESULT WINAPI MimeEditGetBackgroundImageUrl(IUnknown*,BSTR*);")
1443 cpp_quote
("HRESULT WINAPI MimeEditDocumentFromStream(IStream*,REFIID,void**);")
1445 cpp_quote
("HRESULT WINAPI MimeOleGetPropertySchema(IMimePropertySchema**);")
1446 cpp_quote
("HRESULT WINAPI MimeGetAddressFormatW(REFIID,void*,DWORD,ADDRESSFORMAT,WCHAR**);")
1447 cpp_quote
("#ifdef __cplusplus")