Platform SDK: SMTP Server Events

IMailMsgPropertyStream::StartWriteBlocks

[This is preliminary documentation and subject to change.]

Start a block write transaction.

HRESULT StartWriteBlocks(
   [in] IMailMsgProperties *pMsg,
   [in] DWORD dwBlocksToWrite,
   [in] DWORD dwTotalBytesToWrite
);
pMsg
The interface on a MailMsg object for which the block-write transaction is to begin.
dwBlocksToWrite
Specifies the number of blocks that will be written before EndWriteBlocks is called.
dwTotalBytesToWrite
Specifies the sum of the block sizes in bytes that will be written during the transaction before EndWriteBlocks is called.

Return Values

Value Description
S_OK Success. The operation completed synchronously.

Remarks

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.EndWriteBlocks