The IMAPIForm::Unadvise method cancels a registration for notifications with a form viewer previously established with a call to the IMAPIForm::Advise method.
See IMAPIForm : IUnknown.
HRESULT Unadvise(
ULONG ulConnection
);
Form viewers call the IMAPIForm::Unadvise method to cancel a registration for notification that they initially established by calling IMAPIForm::Advise.
Discard the pointer that you are holding to the form viewer's view advise sink by calling its IUnknown::Release method. Generally, Release is called during the Unadvise call, but if another thread is in the process of calling one of the IMAPIViewAdviseSink methods for the view advise sink, delay the Release call until the IMAPIViewAdviseSink method returns.
IMAPIForm::Advise, IMAPIViewAdviseSink : IUnknown