Share via


IOleAdviseHolder::SendOnClose (Compact 2013)

3/26/2014

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

Syntax

HRESULT SendOnClose() 

Parameters

None.

Return Value

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

Remarks

SendOnClose must call 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.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header

Oleidl.h,
oleidl.idl

Library

oleaut32.lib,
uuid.lib

See Also

Tasks

Determine Supported COM APIs

Reference

IOleAdviseHolder
IAdviseSink::OnClose
IOleObject::Close