Platform SDK: SMTP Server Events

IMailMsgBind::BindToStore

[This is preliminary documentation and subject to change.]

Bind a MailMsg object to a store.

HRESULT BindToStore(
  [in] IMailMsgPropertyStream *pStream,
  [in] IMailMsgStoreDriver *pStore,
  [in] PFIO_CONTEXT pFIOContext
);
pStream
A reference to the MailMsg object's associated property stream object.
pStore
A reference to the store driver object to which to bind the MailMsg object.
pFIOContext
The associated content file context for the MailMsg object.

Return Values

S_OK

Success.

Remarks

During this call, the MailMsg object caches the content FIO_CONTEXT structure, the reference to the store driver object, and the IMailMsgPropertyStream reference. The property stream interface and the file context are then used to persist the data in the MailMsg object.