주위에 물어보는 사람이 있어 찾아봤는데.. 간단하네요..
bool firstInstance;
Mutex mutex = new Mutex(false, "Local\\"+someUniqueName, out firstInstance);
// If firstInstance is now true, we're the first instance of the application;
// otherwise another instance is running.
출처 : http://www.yoda.arachsys.com/csharp/faq/#one.application.instance
위 방법을 이용한 예제 소스
출처 : http://www.codeproject.com/csharp/cssingprocess.asp
'programming > .net' 카테고리의 다른 글
[Updated]DotNet 관련 Toool 모음 (0) | 2005.11.20 |
---|---|
.Net 용 Mock Object 입니다. (0) | 2004.08.10 |