// Token: 0x060014ED RID: 5357 RVA: 0x0002A188 File Offset: 0x00028388 private static bool smethod_0() { EventArgs19 eventArgs = new EventArgs19(); using (IEnumerator <Form0> enumerator = Form0.class121_0.LiveList.GetEnumerator()) { Form0.Class81 @class = new Form0.Class81(); while (enumerator.MoveNext()) { Form0 form0_ = enumerator.Current; @class.form0_0 = form0_; @class.form0_0.vmethod_1(eventArgs); if (eventArgs.Cancel) { Form0.Class82 class2 = new Form0.Class82(); class2.class81_0 = @class; Enum29 @enum = Environment.OSVersion.smethod_0(); if (!string.IsNullOrEmpty(eventArgs.CancelReason) && (@enum <= Enum29.const_0 || @enum >= Enum29.const_16)) { class2.bool_0 = Class265.ShutdownBlockReasonCreate(@class.form0_0.Handle, eventArgs.CancelReason); } else { class2.bool_0 = false; } @class.form0_0.FormClosed += class2.method_0; return(false); } } } return(true); }
public Class122(Enum29 enum29_1, byte byte_1, long long_1, int int_1) { byte_0 = byte_1; int_0 = int_1; long_0 = long_1; enum29_0 = enum29_1; }
private static void Main() { Class283.Class284 @class = new Class283.Class284(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); @class.mutex_0 = null; @class.memoryMappedFile_0 = null; @class.mutex_1 = null; Thread.CurrentThread.CurrentCulture = (Thread.CurrentThread.CurrentUICulture = Class217.cultureInfo_0); Class368 class2 = new Class368(Class291.string_17); Class373.Logger = class2; Class367 class3 = class2; if (Class283.eventHandler_0 == null) { Class283.eventHandler_0 = new EventHandler <EventArgs25>(Class283.smethod_1); } class3.LogFileCompressed += Class283.eventHandler_0; @class.bool_0 = false; @class.action_0 = new Action(@class.method_0); @class.bool_1 = false; @class.action_1 = new Action(@class.method_1); @class.action_2 = new Action(@class.method_2); @class.action_3 = new Action <Exception, string>(@class.method_3); UnhandledExceptionEventHandler value = new UnhandledExceptionEventHandler(@class.method_4); AppDomain.CurrentDomain.UnhandledException += value; ThreadExceptionEventHandler value2 = new ThreadExceptionEventHandler(@class.method_5); Application.ThreadException += value2; Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); Enum29 @enum = Environment.OSVersion.smethod_0(); if (@enum > Enum29.const_0 && @enum < Enum29.const_10) { DialogBox.smethod_3(Class283.string_2, Class283.string_3); Application.Exit(); return; } try { try { @class.mutex_1 = new Mutex(false, Class283.string_16); if (!(@class.bool_0 = @class.mutex_1.WaitOne())) { Environment.ExitCode = 1; Application.Exit(); } else if (Class265.smethod_1(Class283.string_15)) { Class283.smethod_0(); Environment.ExitCode = 1; Application.Exit(); } else if (Class409.Current.Flags.Contains(Class283.string_17)) { Environment.ExitCode = 0; Application.Exit(); } else if (Class409.Current.Flags.Contains(Class283.string_18)) { if (DialogBox.smethod_6(Class283.string_6, Class283.string_7, new Enum39[] { Enum39.const_5, Enum39.const_6 }) == DialogResult.Yes) { using (UninstallationCleanUp uninstallationCleanUp = new UninstallationCleanUp()) { Application.Run(uninstallationCleanUp); } } Application.Exit(); } else { try { @class.mutex_0 = new Mutex(false, Class283.string_15); } catch (Exception ex) { @class.action_1(); ex.smethod_0(); DialogBox.smethod_4(Class283.string_8, Class283.string_9); Application.Exit(); return; } if (!(@class.bool_1 = @class.mutex_0.WaitOne(TimeSpan.Zero, false))) { Class283.smethod_0(); Environment.ExitCode = 1; Application.Exit(); } else { try { @class.memoryMappedFile_0 = MemoryMappedFile.CreateNew(Class283.string_13, 4L, MemoryMappedFileAccess.ReadWrite); } catch (IOException ex2) { ex2.smethod_0(); @class.action_2(); if (Marshal.GetHRForException(ex2) == (int)Class265.uint_0) { Class283.smethod_0(); Environment.ExitCode = 1; Application.Exit(); return; } } using (Class283.icon_0 = Icon.ExtractAssociatedIcon(Application.ExecutablePath)) { Class176 instance = Class176.Instance; DateTime now = DateTime.Now; if (instance.UpdateStepOn == Enum111.const_6 || (Class110.Instance.ApplicationSettings.UpdateType != Enum78.const_3 && (now - instance.LastCheckedForUpdate).TotalDays >= 14.0)) { bool flag = false; try { using (Updater updater = new Updater(true)) { Application.Run(updater); switch (updater.UpdateResult) { case Enum43.const_4: case Enum43.const_6: flag = true; break; case Enum43.const_5: instance.UpdateStepOn = Enum111.const_0; flag = true; Application.Exit(); return; } } } finally { if (flag) { instance.LastCheckedForUpdate = now; instance.method_0(); } } } try { using (Class435 class4 = new Class435()) { EventHandler <EventArgs11> eventHandler = null; Class283.Class285 class5 = new Class283.Class285(); class5.class284_0 = @class; class5.class330_0 = new Class330(); try { Class435 class6 = class4; if (eventHandler == null) { eventHandler = new EventHandler <EventArgs11>(class5.method_0); } class6.DataReceived += eventHandler; if (@class.memoryMappedFile_0 != null) { using (MemoryMappedViewStream memoryMappedViewStream = @class.memoryMappedFile_0.CreateViewStream(0L, (long)Class283.int_0, MemoryMappedFileAccess.ReadWrite)) { using (BinaryWriter binaryWriter = new BinaryWriter(memoryMappedViewStream, Class217.encoding_0)) { binaryWriter.Write(Process.GetCurrentProcess().Id); binaryWriter.Write(class4.Handle.ToInt64()); } } } @class.action_0(); bool flag2 = Class409.Current.Flags.Contains("DEBUG"); try { if (flag2) { Class335.smethod_0(Class291.DebugLogDirectory); Class110.Instance.CreatedFileArchive.method_4(Class335.LogFile); Class335.smethod_2(Class283.string_5, false); Class335.smethod_2(Class283.string_4, false); } Application.Run(class5.class330_0); } finally { if (flag2) { Class335.smethod_2(Class283.string_5, false); Class335.smethod_1(); } } } finally { if (class5.class330_0 != null) { ((IDisposable)class5.class330_0).Dispose(); } } } } finally { Class110.smethod_1(); } } } } } finally { @class.action_0(); } } finally { @class.action_1(); @class.action_2(); Application.ThreadException -= value2; } }
public void method_7(Enum29 enum29_1) { enum29_0 = enum29_1; }
public void method_8(Enum29 enum29_0) { this.class184_0.method_5(enum29_0); }
public void method_5(Enum29 enum29_1) { this.enum29_0 = enum29_1; }
public void method_5(Enum29 enum29_1) { this.enum29_0 = enum29_1; }
// Token: 0x06002415 RID: 9237 RVA: 0x0007A408 File Offset: 0x00078608 public static Enum29 smethod_0(this OperatingSystem os) { Struct15 @struct = default(Struct15); @struct.uint_0 = (uint)Marshal.SizeOf(typeof(Struct15)); if (!Class265.GetVersionEx(ref @struct)) { throw new Win32Exception(); } Enum29 result = Enum29.const_0; Struct53 struct2 = default(Struct53); Class265.GetSystemInfo(ref struct2); switch (@struct.enum113_0) { case Enum113.const_0: result = Enum29.const_1; break; case Enum113.const_1: { uint uint_ = @struct.uint_1; if (uint_ == 4U) { uint uint_2 = @struct.uint_2; if (uint_2 != 0U) { if (uint_2 != 10U) { if (uint_2 == 90U) { result = Enum29.const_6; } } else if (@struct.string_0[0] == 'A') { result = Enum29.const_5; } else { result = Enum29.const_4; } } else { if (@struct.string_0[0] != 'B') { if (@struct.string_0[0] != 'C') { result = Enum29.const_2; break; } } result = Enum29.const_3; } } break; } case Enum113.const_2: switch (@struct.uint_1) { case 3U: result = Enum29.const_7; break; case 4U: switch (@struct.enum128_0) { case Enum128.const_2: result = Enum29.const_8; break; case Enum128.const_1: result = Enum29.const_9; break; } break; case 5U: switch (@struct.uint_2) { case 0U: result = Enum29.const_10; break; case 1U: result = Enum29.const_11; break; case 2U: if (@struct.enum112_0.HasFlag(Enum112.flag_12)) { result = Enum29.const_13; } else if (@struct.enum128_0 == Enum128.const_2 && struct2.enum133_0 == Enum133.const_0) { result = Enum29.const_12; } else { result = ((Class265.GetSystemMetrics(Enum67.const_91) == 0) ? Enum29.const_14 : Enum29.const_15); } break; } break; case 6U: switch (@struct.uint_2) { case 0U: result = ((@struct.enum128_0 == Enum128.const_2) ? Enum29.const_16 : Enum29.const_17); break; case 1U: result = ((@struct.enum128_0 == Enum128.const_2) ? Enum29.const_19 : Enum29.const_18); break; default: if (@struct.uint_2 > 1U) { result = Enum29.const_20; } break; } break; default: if (@struct.uint_1 > 6U) { result = Enum29.const_20; } break; } break; } return(result); }
public void method_8(Enum29 enum29_0) { this.class184_0.method_5(enum29_0); }
public void method_8(Enum29 enum290) { _class1840.method_5(enum290); }
public void method_5(Enum29 enum291) { _enum290 = enum291; }