Microsoft DirectX 9.0

IAMExtendedErrorInfo::get_HasError

The get_HasError method queries whether an error occurred.

Syntax

HRESULT get_HasError(
  VARIANT_BOOL *pHasError
);

Parameters

pHasError

Pointer to a variable that receives one of the following values.

Value Description
VARIANT_FALSE No error.
VARIANT_TRUE An error occurred.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

If pHasError is true, you can call the get_ErrorCode and get_ErrorDescription methods to determine the nature of the error.

See Also