IDataAdviseHolder::Unadvise

Removes a connection between a data object and an advisory sink that was set up through a previous call to IDataAdviseHolder::Advise. IDataAdviseHolder::Unadvise is typically called in the implementation of IDataObject::DUnadvise.

HRESULT Unadvise(

DWORD dwConnection

//Connection to remove

);

Parameter

dwConnection
[in] DWORD token that specifies the connection to remove. This value was returned by IDataAdviseHolder::Advise when the connection was originally established.

Return Values

S_OK
The specified connection was successfully deleted.
OLE_E_NOCONNECTION
The specified dwConnection is not a valid connection.

See Also

IDataAdviseHolder::Advise, IDataObject::DUnadvise