9.5.2 OleClose

OLESTATUS OleClose(lpObject)

LPOLEOBJECT lpObject;

The OleClose function closes the specified open object.

Parameter Description

lpObject Points to the object to close.

Closing an object terminates the connection with the server application.

The return value is OLE_OK if successful; otherwise, it could be one of the following:

OLE_BUSY

OLE_ERROR_OBJECT

OLE_WAIT_FOR_RELEASE

See AlsoOleActivate, OleDelete, OleReconnect