IOleAdviseHolder::SendOnClose method (oleidl.h)

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

Syntax

HRESULT SendOnClose();

Return value

This method returns S_OK if advise sinks were notified of the close operation through a call to the IAdviseSink::OnClose method.

Remarks

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 SendOnClose when you determine that a Close operation has been successful.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header oleidl.h

See also

IAdviseSink::OnClose

IOleAdviseHolder