IDataObjectImpl::DAdvise

 

Establishes a connection between the data object and an advise sink.

Syntax

      HRESULT DAdvise(
   FORMATETC* pformatetc,
   DWORD advf,
   IAdviseSink* pAdvSink,
   DWORD* pdwConnection 
);

Remarks

This enables the advise sink to receive notifications of changes in the object.

To terminate the connection, call DUnadvise.

See IDataObject::DAdvise in the Windows SDK.

Requirements

Header: atlctl.h

See Also

IDataObjectImpl Class
FORMATETC
IAdviseSink