Sends notifications to each advise sink for which there is a connection established by calling the IAdviseSink::OnDataChange method for each advise sink currently being handled by this instance of the advise holder object.
HRESULT SendOnDataChange(
IDataObject * pDataObject,
//Pointer to the data object that has changed
DWORD dwReserved, //Reserved
DWORD advf //Advise flags
);
This method supports the standard return value E_OUTOFMEMORY, as well as the following:
The data object must call this method when it detects a change that would be of interest to an advise sink that has previously requested notification.
Most notifications include the actual data with them. The only exception is if the ADVF_NODATA flag was previously specified when the connection was initially set up in the IDataAdviseHolder::Advise method.
Before calling the IAdviseSink::OnDataChange method for each advise sink, this method obtains the actual data by calling the IDataObject::GetData method through the pointer specified in the pDataObject parameter.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.
ADVF, IAdviseSink::OnDataChange