IOleAdviseHolder::SendOnClose method
Sends notification to all advisory sinks currently registered with the advise holder that the object has closed.
Syntax
HRESULT SendOnClose();
Parameters
This method has no parameters.
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
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IOleAdviseHolder is defined as 00000111-0000-0000-C000-000000000046 |
See also