Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
Read a list of blocks from the stream with asynchronous completion.
HRESULT ReadBlocks( [in] IMailMsgProperties* pMsg, [in] DWORD dwCount, [in,size_is(dwCount),length_is(dwCount),unique] DWORD *pdwOffset, [in,size_is(dwCount),length_is(dwCount),unique] DWORD *pdwLength, [out,size_is(dwCount)] BYTE **ppbBlock, [in,unique] IMailMsgNotify *pNotify );
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. |
The object only returns properties that have been committed to physical storage. Any blocks written within an ongoing transaction are not returned by the ReadBlocks method, nor are these blocks reported when GetSize 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).
IMailMsgNotify Interface
IMailMsgNotify.Notify