26 lines
685 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|