Поделиться через


IConverterSession::SetCharSet

IConverterSession::SetCharSet

Specifies an optional character set that the MAPI to MIME converter use when converting a MAPI message to a MIME stream.

Quick Info

See IConverterSession.

  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 Values

S_OK

The function call is successful.

See Also

IConverterSession

IConverterSession::MAPIToMIMEStm

IConverterSession::MIMEToMAPI

IConverterSession::SetAdrBook

IConverterSession::SetEncoding

IConverterSession::SetSaveFormat

IConverterSession::SetTextWrapping

CSETAPPLYTYPE