OleClose

3.1

  #include <ole.h>    

  OLESTATUS OleClose(lpObject)    
  LPOLEOBJECT lpObject; /* address of object to close */

The OleClose function closes the specified open object. Closing an object terminates the connection with the server application.

Parameters

lpObject

Points to the object to close.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:

OLE_BUSY
OLE_ERROR_OBJECT
OLE_WAIT_FOR_RELEASE

See Also

OleActivate, OleDelete, OleReconnect