IOleAdviseHolder::SendOnClose  5JX0AD

Sends notification that the object has closed to all advisory sinks currently registered with the advise holder.

HRESULT SendOnClose();

Return Value

S_OK

Advise sinks were notified of the close operation through a call to the IAdviseSink::OnClose method.

 

Remarks

IOleAdviseHolder::SendOnClose must call IAdviseSink::OnCloseRFOKVA on all advise sinks that have a valid advisory connection with the object, whenever the object goes from the running state to the loaded state. This occurs through a call to IOleObject::CloseAY9NYV, so you can call IOleAdviseHolder::SendOnClose when you determine that a Close operation has been successful.

See Also

IAdviseSink::OnClose