#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.
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 may be one of the following:
OLE_BUSY
OLE_ERROR_OBJECT
OLE_WAIT_FOR_RELEASE