IConverterSession::SetCharSet
Applies to: Office 2010 | Outlook 2010 | Visual Studio
Specifies an optional character set that the MAPI to MIME converter use when converting a MAPI message to a MIME stream.
HRESULT SetCharset(
BOOL fApply,
HCHARSET hcharset,
CSETAPPLYTYPE csetapplytype);
Parameters
fApply
[in] Indicates whether to use a specific character set for the conversion. Set this parameter to true to apply the character set in subsequent conversions. Set this parameter to false if you no longer want to apply any specific character set and return to the defaults for subsequent messages.hcharset
[in] A handle to a character set as defined in mimeole.h of Windows Mail. Specify null to specify that you do not want to apply any specific character set. For non-null values, use a function such as MimeOleGetCodePageCharset to obtain a handle to the character set.csetapplytype
[in] Indicates how to apply a character set to convert a message, as defined in mimeole.h of Windows Mail.
Return Value
- S_OK
The function call is successful.
MFCMAPI Reference
For MFCMAPI sample code, see the following table.
File |
Function |
Comment |
---|---|---|
MapiMime.cpp |
ImportEMLToIMessage |
MFCMAPI uses MimeToMAPI to convert an EML file to a MAPI message. |
MapiMime.cpp |
ExportIMessageToEML |
MFCMAPI uses MAPIToMIMEStm to convert a MAPI message to an EML file. |
See Also
Reference
IConverterSession::MAPIToMIMEStm
IConverterSession::SetEncoding