Windows Dev Center

IAdviseSink::OnClose method

Called by the server to notify all registered advisory sinks that the object has changed from the running to the loaded state.

Syntax


void OnClose();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

The OnClose notification indicates that an object is making the transition from the running to the loaded state, so its container can take appropriate measures to ensure an orderly shutdown. For example, an object handler must release its pointer to the object.

If the object that is closing is the last open object supported by its OLE server application, the application can also shut down.

In the case of a link object, the notification that the object is closing should always be interpreted to mean that the connection to the link source has broken.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IAdviseSink is defined as 00000150-0000-0000-C000-000000000046

See also

IAdviseSink

 

 

Community Additions

ADD
Show:
© 2015 Microsoft