private static int GetHRForException(Exception e) { return (int)exceptionGetHResult.Invoke(e, null); }