OLESTATUS OleRelease(lpObject)
LPOLEOBJECT lpObject;
The OleRelease function releases an object from memory and closes it if it was open.
Parameter | Description |
lpObject | Points to the object to release. |
This function does not indicate that the object has been deleted from the client document.
The OleRelease function should be called for all objects when closing the client document.
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 AlsoOleDelete