IDispEventSimpleImpl::Unadvise
Breaks the connection with the event source represented by pUnk.
HRESULT Unadvise(
IUnknown* pUnk
);
Параметры
- pUnk
[in] A pointer to the IUnknown interface of the event source object.
Возвращаемое значение
S_OK or any failure HRESULT value.
Заметки
Once the connection is broken, events will no longer be routed to the handler functions listed in the event sink map.
![]() |
---|
If your class derives from multiple IDispEventSimpleImpl classes, you will need to disambiguate calls to this method by scoping the call with the particular base class you are interested in. |
Unadvise breaks a connection that was established with the default event source specified in pdiid.
Unavise breaks a connection with the default event source, it gets the IID of the default event source of the object as determined by AtlGetObjectSourceInterface.
Требования
Header: atlcom.h