Platform SDK: SMTP Server Events

ISMTPStoreDriver::PrepareForShutdown

[This is preliminary documentation and subject to change.]

The ISMTPStoreDriver::PrepareForShutdown method is called by the dispatcher to notify the store driver object that the service is going to shut down. The store driver should release any interfaces it is holding on the server when this method executes. The store driver object should also return errors for any subsequent calls except ISMTPServer::Shutdown, indicating that the object is about to be released.

HRESULT PrepareForShutdown([in] DWORD dwReason);
dwReason
The reason for the shutdown preparation, either SMTP_TERM_VSERVER_SHUTDOWN, or SMTP_TERM_BINDING_CHANGE.

Return Values

Value Description
E_NOTIMPL Error. This method is not implemented.

Remarks

This function is normally used simply to block any subsequent calls to the store driver before the final shutdown command is given.

See Also

ISMTPStoreDriver::Shutdown