C# Mutex 프로그램 중복 실행 방지
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; // Mutex 클래스를 사용하기 위한 네임 스페이스 namespace PlanProdMonitor { static class Program { /// /// 해당 응용 프로그램의 주 진입점입니다. /// [STAThread] static void Main() { bool createdNew; Mutex dup = new Mutex(true, "프로그램명", out createdNew); // 프로그램명은 WinForm.Text 명을 일컫는다. if (createdNew) { Applicatio..
C#
2010. 8. 6. 13:58