Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.Threading;
- namespace MouseFixer
- {
- static class Program
- {
- static Mutex pmu;
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- // Console.WriteLine("Hello");
- try
- {
- Mutex.OpenExisting("MouseFixer");
- MessageBox.Show("MouseFixer is already running", "", MessageBoxButtons.OK, MessageBoxIcon.Stop);
- return;
- }
- catch
- {
- pmu = new Mutex(true, "MouseFixer");
- }
- Application.Run(new TheContext());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement