IOleAdviseHolder::SendOnClose (Windows Embedded CE 6.0)
1/6/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 |
See Also
Reference
IOleAdviseHolder
IAdviseSink::OnClose
IOleObject::Close