IDataObject::EnumDAdvise
Creates an
object that can be used to enumerate the current advisory connections.
HRESULT EnumDAdvise(
IEnumSTATDATA ** ppenumAdvise |
//Indirect pointer |
); |
|
Parameter
ppenumAdvise
[out]
Indirect pointer to the IEnumSTATDATA
Return Values
This method
supports the standard return value E_OUTOFMEMORY, as well as the following:
S_OK
The
enumerator object is successfully instantiated or there are no connections.
OLE_E_ADVISENOTSUPPORTED
Advisory
notifications are not supported by this object.
Remarks
The
enumerator object created by this method implements the IEnumSTATDATA
Notes to Callers
After getting
a pointer through this method, the data object can call the appropriate
enumeration methods. While the enumeration is in progress, the effect of adding
more advisory connections on the subsequent enumeration is undefined.
Notes to Implementers
It is
recommended that you use the OLE data advise holder object to handle advisory
connections. With the pointer obtained through a call to CreateDataAdviseHolder,
implementing IDataObject::EnumDAdvise becomes a simple matter of
delegating the call to IDataAdviseHolder::EnumAdvise. This creates the
enumerator and supplies the pointer to the OLE implementation of IEnumSTATDATA.
At that point, you can call its methods to enumerate the current advisory
connections.
See Also