// SxS: clearing error information is considered safe internal static void ClearErrorInfo() { SafeNativeMethods.SetErrorInfo(0, ADP.PtrZero); }