IConnectionPoint::Unadvise Method
IConnectionPoint::Unadvise Method

Terminates an advisory connection previously established between a connection point object and a client's sink.

Syntax

HRESULT Unadvise(
  [in]  DWORD dwCookie
);


Parameters

dwCookie [in]

A connection token previously returned from IConnectionPoint::Advise.

Return Value

This method can return the standard return values E_UNEXPECTED, as well as the following values.

Return codeDescription
S_OK

The connection was terminated successfully.

E_POINTER

The value in dwCookie does not represent a valid connection.

 

Remarks

When an advisory connection is terminated, the connection point calls the Release method on the pointer that was saved for the connection during the IConnectionPoint::Advise method. This Release reverses the AddRef that was performed during the Advise when the connection point calls the advisory sink's QueryInterface.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderOCIdl.h
IDLOCIdl.idl
IIDIID_IConnectionPoint is defined as B196B286-BAB4-101A-B69C-00AA00341D07

See Also

IConnectionPoint

 

 

Send comments about this topic to Microsoft

Build date: 1/7/2010

Build type: MSDN

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View