internal static void ConvertException(Win32Exception.Operation operation) { try { operation(); } catch (System.ComponentModel.Win32Exception e) { throw Win32Exception.Create(e.NativeErrorCode); } }
internal static int CatchException(Win32Exception.Operation operation) { try { operation(); return(0); } catch (System.ComponentModel.Win32Exception e) { return(e.NativeErrorCode); } }