Deletes a previously established advisory connection.
HRESULT Unadvise(
DWORD dwConnection //Token
);
This method supports the standard return value E_FAIL, as well as the following:
Normally, containers call IOleObject::Unadvise at shutdown or when an object is deleted. In certain cases, containers can call this method on objects that are running but not currently visible as a way of reducing the overhead of maintaining multiple advisory connections. The easiest way to implement this method is to delegate the call to IOleAdviseHolder::Unadvise.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.
IOleObject::Advise, IOleObject::EnumAdvise, IOleAdviseHolder::Unadvise