Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
Re-allocates a new property stream and/or content file based on existing storage with optional asynchronous completion.
HRESULT ReAllocMessage( [in] IMailMsgProperties* pOriginalMsg, [in] IMailMsgProperties* pNewMsg, [out] IMailMsgPropertyStream** ppStream, [out] PFIO_CONTEXT* ppFIOContentFile, [in,unique] IMailMsgNotify* pNotify );
Value | Description |
---|---|
S_OK | Success. The method completed synchronously. |
MAILMSG_S_PENDING | Success. The operation will complete asynchronously. When it completes, you will be notified through the interface you passed using the pNotify parameter. The result of the operation will be returned with the notification callback method. |
NTE_BAD_SIGNATURE | The signature stored in the IMMPID_MPV_STORE_DRIVER_HANDLE property does not match the CLSID of this store driver object. |
E_FAIL | Failure. The store driver object has not been initialized. |
E_POINTER | Error. NULL passed in argument list. |
This method is similar to the AllocMessage method: it allocates a new message internally using the AllocMessage function and then copies the message content from the original (first) message to the content stream for the newly allocated (second) message's content stream, normally using the CopyContentToFile method. Once completed, the new associated PFIO_CONTEXT and IMailMsgPropertyStream references are returned along with the reference to the newly created MailMsg object.
IMailMsgNotify Interface
IMailMsgNotify.Notify
IMailMsgStoreDriver::CloseContentFile
IMailMsgStoreDriver::AllocMessage
IMailMsgStoreDriver::CopyContentToFile