CDataObject::DAdvise
HRESULTCDataObject::DAdvise(LPFORMATETClpFormatEtc, DWORDdwFlags, LPADVISESINKpAdviseSink, LPDWRODpdwConnection)
Add an advisor to the data object
Defined in: DataSource.h
Return Value
Returns S_OK if the advise sink hooked up okay
Parameters
lpFormatEtc
Pointer to a FORMATETC structure holding the format information of the requested data type.
dwFlags
Specifies a group of flags for controlling the advisory connection.
pAdviseSink
The Advise Sink
pdwConnection
Cookie for unsubscribing