private static int Revert(IntPtr @this) { #if MAP_EX_TO_HR try { #endif GetObject(@this).managedInterface.Revert(); return S_OK; #if MAP_EX_TO_HR } catch (Exception e) { return GetHRForException(e); } #endif }