Partager via


IMimeMessage::SplitMessage method

Splits the message into smaller parts for transmission.

Syntax

HRESULT SplitMessage(
  [in]  ULONG             cbMaxPart,
  [out] IMimeMessageParts **ppParts
);

Parameters

cbMaxPart [in]

Type: ULONG

Specifies the maximum size of a part in bytes.

ppParts [out]

Type: IMimeMessageParts**

Receives the address of a pointer to the IMimeMessageParts object. The client is responsible for releasing this object.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_FAIL
Indicates that an unknown error has occurred.
E_INVALIDARG
Indicates that ppParts is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
MIME_E_MAX_SIZE_TOO_SMALL
cbMaxPart specifies a size smaller than the root header of the message.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
IDL
Mimeole.idl
DLL
Inetcomm.dll (version 6.0 or later)

See also

IMimeMessage

IMimeMessageParts