OleQueryReleaseError

  OLESTATUS OleQueryReleaseError(lpobj)    
  LPOLEOBJECT lpobj; /* pointer to object to query */

The OleQueryReleaseError function determines the error value for an asynchronous operation on an object.

Parameters

lpobj

Points to an object for which the error value is queried.

Return 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.

Comments

A client application receives the OLE_RELEASE notification when an asynchronous operation has terminated. The client should then call the OleQueryReleaseError function to determine whether the operation has terminated successfully or with an error value.

See Also

OleQueryReleaseMethod, OleQueryReleaseStatus