IOleAdviseHolder::SendOnClose

This method sends notification that the object is closed to all advisory sinks currently registered with the advise holder.

At a Glance

Header file: Oleidl.h
Windows CE versions: 2.0 and later

Syntax

HRESULT SendOnClose()

Return Value

S_OK indicates that advise sinks were notified of the close operation through a call to the IAdviseSink::OnClose method.

Remarks

IOleAdviseHolder::SendOnClose must call IAdviseSink::OnClose 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::Close, so you can call IOleAdviseHolder::SendOnClose when you determine that a Close operation has been successful.