Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void FMD5_Load(object sender, EventArgs e)
- {
- //запрет второй копии
- bool existed;
- // получаем GIUD приложения
- string guid = Marshal.GetTypeLibGuidForAssembly(Assembly.GetExecutingAssembly()).ToString();
- Mutex mutexObj = new Mutex(true, guid, out existed);
- if (!existed)
- {
- System.Diagnostics.Process.GetCurrentProcess().Kill();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement