3.10 Function Status Return

When a WOSA/XFS API or SPI function call completes, it returns a value that either defines the completion status, or in the case of asynchronous functions, the status of the initial processing of the request. When an asynchronous function completes, the completion message includes the final status of the request. The return value of most functions is a “result handle,” hResult, of type HRESULT. hResult values are defined to be WFS_SUCCESS (zero) for success; other values indicate the specific error that occurred, as defined in each function specification.

The XFS Manager and the service providers return status from a function call, in the form of an hResult result handle, in two manners:

The mechanism depends on the category of function being processed, as follows: