0 out of 2 rated this helpful - Rate this topic

IDispEventSimpleImpl::DispEventUnadvise 

Breaks the connection with the event source represented by pUnk.


HRESULT DispEventUnadvise(
   IUnknown* pUnk 
      const IID* piid 
);

Parameters

pUnk

[in] A pointer to the IUnknown interface of the event source object.

piid

A pointer to the IID 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.

NoteNote

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.

DispEventAdvise breaks a connection that was established with the event source specified in pdiid.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.