OleClose

  OLESTATUS OleClose(lpObject)    
  LPOLEOBJECT lpObject; /* pointer to 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 can be OLE_BUSY, OLE_ERROR_OBJECT, or OLE_WAIT_FOR_RELEASE.

See Also

OleActivate, OleDelete, OleReconnect