Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Terminates an advisory connection previously established through ISimpleConnectionPoint::Advise.
Syntax
HRESULT Unadvise(
DWORD dwCookie
);
Parameters
dwCookie
[in] Token of the connection to terminate, as returned from ISimpleConnectionPoint::Advise.
Return Value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Value | Description |
|---|---|
S_OK |
The method succeeded. |
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 ISimpleConnectionPoint::Advise method. That call reverses the AddRef that was performed during the ISimpleConnectionPoint::Advise when the connection point calls the advisory sink's QueryInterface.