ConnectToConnectionPoint.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

ConnectToConnectionPoint (SHLWAPI.168)

SYNOPSIS

HRESULT ConnectToConnectionPoint
 (
  IUnknown*          lpUnkSink,
  REFIID             riid,
  BOOL               bAdviseOnly,
  IUnknown*          lpUnknown,
  LPDWORD            lpCookie,
  IConnectionPoint** lppCP
 )

DESCRIPTION

Locate and advise a connection point in an IConnectionPointContainer object.

PARAMS

lpUnkSink [In] Sink for the connection point advise call.

riid [In] REFIID of connection point to advise.

bAdviseOnly [In] TRUE = Advise only, FALSE = Unadvise first.

lpUnknown [In] Object supporting the IConnectionPointContainer interface.

lpCookie [Out] Pointer to connection point cookie.

lppCP [Out] Destination for the IConnectionPoint found.

RETURNS

Success: S_OK. If lppCP is non-NULL, it is filled with the IConnectionPoint that was advised. The caller is responsible for releasing it.

Failure: E_FAIL, if any arguments are invalid. E_NOINTERFACE, if lpUnknown isn't an IConnectionPointContainer, Or an HRESULT error code if any call fails.

IMPLEMENTATION

Exported by ordinal only. Use GetProcAddress(3w) to obtain a pointer to the function.

Implemented in "dlls/shlwapi/ordinal.c".

Debug channel "shell".