IOleAdviseHolder::SendOnClose

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IOleAdviseHolder
IAdviseSink::OnClose
IOleObject::Close

Concepts

Determining Supported COM APIs