Platform SDK: SMTP Server Events

IMailTransportNotify::Notify

[This is preliminary documentation and subject to change.]

The IMailTransportNotify::Notify method is called by transport event sinks to notify the event source that asynchronous processing has completed.

HRESULT Notify(
        [in] HRESULT hrCompletion,
        [in] PVOID pvContext
);
hrCompletion
The result of the asynchronous processing.
pvContext
The passed asynchronous context passed to the sink by the dispatcher.

Return Values

Value Description
S_OK Success. Successful processing has been acknowledged.

Remarks

After asynchronous sink processing has completed, you notify the source, passing the HRESULT result as the first parameter for the method. Pass the context in the second parameter. The context reference is passed as a parameter by the event dispatcher when notifying event sinks of events that support asynchronous processing. The source receives the notification and will take appropriate action based upon the result.