Поделиться через


CComPtrBase::Advise

Call this method to create a connection between the CComPtrBase's connection point and a client's sink.

HRESULT Advise(
   IUnknown* pUnk,
   const IID& iid,
   LPDWORD pdw 
) throw( );

Параметры

  • pUnk
    A pointer to the client's IUnknown.

  • iid
    The GUID of the connection point. Typically, this is the same as the outgoing interface managed by the connection point.

  • pdw
    A pointer to the cookie that uniquely identifies the connection.

Возвращаемое значение

Returns S_OK on success, or an error HRESULT on failure.

Заметки

See AtlAdvise for more information.

Требования

Header: atlcomcli.h

См. также

Основные понятия

CComPtrBase Class

CComPtrBase Members