Platform SDK: SMTP Server Events

IMailMsgProperties::GetContentSize

[This is preliminary documentation and subject to change.]

Get the current MailMsg content size in bytes with optional asynchronous completion.

HRESULT GetContentSize(
   [out] DWORD *pdwSize,
   [in,unique] IMailMsgNotify *pNotify
);
pdwSize
Receives the result.
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 operation completed synchronously.
MAILMSG_S_PENDING Success. The operation is pending, and pNotify->Notify will be called with the result of the operation when it completes.

See Also

IMailMsgNotify Interface

IMailMsgNotify::Notify