IDataAdviseHolder::SendOnDataChange
Sends
notifications to each advise sink for which there is a connection established
by calling the IAdviseSink::OnDataChange
HRESULT SendOnDataChange(
IDataObject * pDataObject, |
//Pointer to the data object that has changed |
DWORD dwReserved, |
//Reserved |
DWORD advf |
//Advise flags |
); |
|
Parameters
pDataObject
[in] Pointer
to the IDataObject interface on the data object in which the data has
just changed. This pointer is used in subsequent calls to IAdviseSink::OnDataChange
dwReserved
[in] Reserved
for future use; must be zero.
advf
[in]
Container for advise flags that specify how the call to IAdviseSink::OnDataChange
Return Values
This method
supports the standard return value E_OUTOFMEMORY, as well as the following:
S_OK
The call to IAdviseSink::OnDataChange
was made.
Remarks
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
Before
calling the IAdviseSink::OnDataChange
See Also