using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace AsusFanControlGUI { internal static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } static void OnProcessExit(object sender, EventArgs e) { AsusSystemAnalysis.AsusWinIO64.HealthyTable_SetFanTestMode((char)(0x00)); } } }