2010年9月21日
摘要: 实现单实例应用程序的方法比较多,我列举一些常用的方法: 1,使用互斥体: static void Main() { bool isOnlyOne; System.Threading.Mutex mtx = new System.Threading.Mutex (false, "OnlyOne", out isOnlyOne); if (isOnlyOne) { Application... 阅读全文
posted @ 2010-09-21 22:40 周雪峰 阅读(350) 评论(0) 推荐(0) 编辑