#include <ole.h> |
OLESTATUS OleDelete(lpObject) | |||||
LPOLEOBJECT lpObject; | /* address of object to delete | */ |
The OleDelete function deletes an object and frees memory that was associated with that object. If the object was open, it is closed.
lpObject
Points to the object to delete.
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
An application uses the OleDelete function when the object is no longer part of the client document.
The OleDelete function, unlike OleRelease, indicates that the object has been permanently removed.