Imported 1.x Project Files
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace VmwareLauncher
|
||||
{
|
||||
class InstanceCheck
|
||||
{
|
||||
public void doCheck()
|
||||
{
|
||||
Process[] proc = Process.GetProcessesByName("vmwarelauncher");
|
||||
if (proc.Count() != 1)
|
||||
{
|
||||
ErrorHandler.ShowError(ErrorHandler.ErrorCode.TooManyVMLInstances);
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user