using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SoftCheck { static class Program { private static System.Threading.Mutex mutex; /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); mutex = new System.Threading.Mutex(true, "SoftCheck"); if (mutex.WaitOne(0, false)) { Application.Run(new Check()); } else { Application.Exit(); } } } }