Converts a HRESULT into an Error variant.
function VarAsError(AResult: HRESULT): Variant;
Variant VarAsError(HRESULT AResult);
Variants
VarAsError converts an HRESULT result code into an equivalent variant of type varError.
VarType