Platform SDK: SMTP Server Events

ISMTPStoreDriver::Shutdown

[This is preliminary documentation and subject to change.]

The ISMTPStoreDriver::Shutdown method is called by the SMTP service to shutdown the store driver.

HRESULT Shutdown([in] DWORD dwReason);
dwReason
Specifies the reason for the shutdown. This should be either SMTP_TERM_VSERVER_SHUTDOWN, or SMTP_TERM_BINDING_CHANGE.

Return Values

Value Description
E_NOTIMPL Error. This method is not implemented.

Remarks

The store driver object should cancel any outstanding requests it has received from the server by posting HRESULT_FROM_WIN32(ERROR_SHUTDOWN_IN_PROGRESS) to any IMailMsgNotify interface references it is currently holding.