Converts an Exception type argument to an HRESULT type.
function VarExceptionToResult(const E: Exception): HRESULT;
HRESULT VarExceptionToResult(const Exception E);
VarUtils
VarExceptionToResult is an internal routine that converts the value given through E from an Exception type to an HRESULT type.