摘要:
Process[] allProcess = Process.GetProcesses();//所有进程再用进程集合去判断是否运行该程序。方法2采用这种想法。判断程序是否已经运行,使程序只能运行一个实例有很多方法,下面两种。方法1:线程互斥 static class Program { private static System.Threading.Mutex mutex; /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { ... 阅读全文
posted @ 2013-08-21 10:11 roseworld 阅读(346) 评论(0) 推荐(0)
浙公网安备 33010602011771号