Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
Gets the binding file handle cache context.
HRESULT GetBinding( [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. |
A MailMsg object that is bound to a store driver object has an internally cached FIO_CONTEXT context structure. This structure contains a file handle (HANDLE) used to persist the content of the message to some physical storage location, usually the file system. To perform I/O operations directly on this backing file, you retrieve the context using GetBinding. For example, when the SMTP service has determined that a message is to be delivered to the local Drop directory, it retrieves a reference to the associated FIO_CONTEXT structure using the GetBinding method.
IMailMsgNotify Interface
IMailMsgNotify.Notify