IConverterSession::MIMEToMAPI [Outlook 2003 API Reference]
Converts a MIME stream to a MAPI message.
Quick Info
See IConverterSession.
HRESULT IConverterSession:: MIMEToMAPI (
LPSTREAM pstm,
LPMESSAGE pmsg,
LPCSTR pszSrcSrv,
ULONG ulFlags
);
Parameters
pstm
[in] IStream interface to a MIME stream.
pmsg
[out] Pointer to the message to load. See mapidefs.h for the type definition of LPMESSAGE.
pszSrcSrv
[in] This value must be NULL.
ulFlags
[in] This parameter identifies any special action to be taken during the conversion. It must be zero (0) if no specific action is to be taken, or a combination of the following values:
CCSF_SMTP
The MIME stream is for an SMTP message.
CCSF_INCLUDE_BCC
BCC recipients of the MIME stream should be included in the MAPI message.
CCSF_USE_RTF
The HTML body of the MIME stream should be converted to RTF in the MAPI message.
Return Values
E_INVALIDARG
pstm is NULL, pmsg is NULL, or ulFlags is invalid.
See Also
IConverterSession::MAPIToMIMEStm
IConverterSession::SetEncoding
IConverterSession::SetSaveFormat