OLESTATUS OleQueryReleaseError(lpobj)
LPOLEOBJECT lpobj;
The OleQueryReleaseError function checks the error value for an asynchronous operation on an object.
Parameter | Description |
lpobj | Points to an object for which the error value is queried. |
A client application receives the OLE_RELEASE notification when an asynchronous operation has terminated. The client should then call the OleQueryReleaseError function to check whether the operation has terminated successfully or with an error value.
The error value is reset when the client application returns from the callback function. The client application should call this function and store the error value.
The return value is OLE_OK if the asynchronous operation completed successfully; otherwise, it is the error value for that operation. If the pointer passed in the lpobj parameter is invalid, the function returns OLE_ERROR_OBJECT.
See AlsoOleQueryReleaseMethod, OleQueryReleaseStatus