The IMAPIViewAdviseSink::OnShutdown method notifies the form viewer that a form is being closed.
See IMAPIViewAdviseSink : IUnknown.
HRESULT OnShutdown();
None
For more information about form notifications, see Sending and Receiving Form Notifications.