# CreateDataAdviseHolder

Supplies a pointer to the OLE implementation of IDataAdviseHolder on the data advise holder object.

WINOLEAPI CreateDataAdviseHolder(

IDataAdviseHolder **ppDAHolder | //Indirect pointer to the advise holder object
); |

Parameter

ppDAHolder
  [out] Indirect pointer to the IDataAdviseHolder interface on the new advise holder object.

Return Values

This function supports the standard return value E_OUTOFMEMORY, as well as the following:

S_OK
  The advise holder object has been instantiated and the pointer supplied.

Remarks

Call CreateDataAdviseHolder in your implementation of IDataObject::DAdvise to get a pointer to the OLE implementation of IDataAdviseHolder interface. With this pointer, you can then complete the implementation of IDataObject::DAdvise by calling the IDataAdviseHolder::Advise method, which creates an advisory connection between the calling object and the data object.

See Also

IDataAdviseHolder