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.
lpObject
Points to the object to close.
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.
OleActivate, OleDelete, OleReconnect