|Microsoft Windows Script Interfaces|
Terminates an advisory connection previously established through ISimpleConnectionPoint::Advise.
HRESULT Unadvise( DWORD dwCookie );
[in] Token of the connection to terminate, as returned from ISimpleConnectionPoint::Advise.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
The method succeeded.
When an advisory connection is terminated, the connection point calls the Release method on the pointer that was saved for the connection during the ISimpleConnectionPoint::Advise method. That call reverses the AddRef that was performed during the ISimpleConnectionPoint::Advise when the connection point calls the advisory sink's QueryInterface.