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.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IDataAdviseHolder::Advise, IDataObject::DUnadvise