Skip to content

Latest commit

 

History

History
100 lines (84 loc) · 3.14 KB

nf-ocidl-iconnectionpoint-unadvise.md

File metadata and controls

100 lines (84 loc) · 3.14 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ocidl.IConnectionPoint.Unadvise
IConnectionPoint::Unadvise (ocidl.h)
Terminates an advisory connection previously established between a connection point object and a client's sink.
IConnectionPoint interface [COM]
Unadvise method
IConnectionPoint.Unadvise
IConnectionPoint::Unadvise
Unadvise
Unadvise method [COM]
Unadvise method [COM]
IConnectionPoint interface
_com_iconnectionpoint_unadvise
com.iconnectionpoint_unadvise
ocidl/IConnectionPoint::Unadvise
com\iconnectionpoint_unadvise.htm
com
71641bad-2fd1-4d94-a6d0-116f5687a95b
12/05/2018
IConnectionPoint interface [COM],Unadvise method, IConnectionPoint.Unadvise, IConnectionPoint::Unadvise, Unadvise, Unadvise method [COM], Unadvise method [COM],IConnectionPoint interface, _com_iconnectionpoint_unadvise, com.iconnectionpoint_unadvise, ocidl/IConnectionPoint::Unadvise
ocidl.h
Windows
Windows 2000 Professional [desktop apps \| UWP apps]
Windows 2000 Server [desktop apps \| UWP apps]
OCIdl.idl
Windows
19H1
IConnectionPoint::Unadvise
ocidl/IConnectionPoint::Unadvise
c++
APIRef
kbSyntax
COM
OCIdl.h
IConnectionPoint.Unadvise

IConnectionPoint::Unadvise

-description

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

-parameters

-param dwCookie [in]

A connection token previously returned from IConnectionPoint::Advise.

-returns

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

Return code Description
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.

-see-also

IConnectionPoint