Platform SDK: SMTP Server Events

IMailMsgPropertyStream::CancelWriteBlocks

[This is preliminary documentation and subject to change.]

Cancels (aborts) the block write transaction. All properties written within the context of the transaction are discarded.

HRESULT CancelWriteBlocks([in] IMailMsgProperties *pMsg);
pMsg
A reference to the MailMsg object for which the transaction is to be cancelled.

Return Values

Value Description
S_OK Success. Block-write transaction has been aborted.

Remarks

All properties written by the transport within a write transaction (StartWriteBlocks) must be discarded when this method is called.

The store driver infers which property stream the method applies to using the MailMsg object's IUnknown address, which uniquely identifies the object in memory (COM Identity rules).

See Also

IMailMsgPropertyStream::WriteBlocks

IMailMsgPropertyStream::StartWriteBlocks