#include <ole.h> |
OLESTATUS OleQueryReleaseError(lpobj) | |||||
LPOLEOBJECT lpobj; | /* address of object to query | */ |
The OleQueryReleaseError function checks the error value for an asynchronous operation on an object.
lpobj
Points to an object for which the error value is to be queried.
The return value, if the function is successful, is either OLE_OK if the asynchronous operation completed successfully or the error value for that operation. If the pointer passed in the lpobj parameter is invalid, the function returns OLE_ERROR_OBJECT.
A client application receives the OLE_RELEASE notification when an asynchronous operation has terminated. The client should then call OleQueryReleaseError to check whether the operation has terminated successfully or with an error value.