This repository has been archived on 2017-12-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ScreenCapture/Program.cs
2015-09-27 12:13:23 +02:00

26 lines
685 B
C#

using System;
using System.Threading;
using System.Windows.Forms;
namespace ScreenCapture
{
static class Program
{
private static Mutex mutex = new Mutex(true, "{08719F8A-B197-477C-9452-E8114DAD2A4A}");
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
if (mutex.WaitOne(TimeSpan.Zero, true))
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
mutex.ReleaseMutex();
}
}
}
}