Platform SDK: SMTP Server Events

IMailMsgProperties::CopyContentToStream

[This is preliminary documentation and subject to change.]

Copy the content to a stream with optional asynchronous completion.

HRESULT CopyContentToStream(
  [in,unique] IMailMsgPropertyStream *pStream,
  [in,unique] IMailMsgNotify *pNotify
);
pStream
A reference to the object into which to copy the content.
pNotify
Interface to notify for asynchronous completion. If this value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING).

Return Values

Value Description
S_OK Success. The method completed synchronously.
MAILMSG_S_PENDING Success. The operation will complete asynchronously. When it completes, you will be notified through the interface you passed using the pNotify parameter. The result of the operation will be returned with the notification callback method.

See Also

IMailMsgNotify Interface

IMailMsgNotify::Notify