private static void Run()
        {
            foreach (var process in Process.GetProcesses().Where(x => x.ProcessName.ToLower().StartsWith("gw2") && !x.ProcessName.ToLower().StartsWith("gw2mutexkiller")).ToList())
            {
                Console.WriteLine("Checking in Process: " + process.ProcessName);
                Console.WriteLine(string.Format("Searching for handle: {0}", Mutex));

                List <Win32API.SYSTEM_HANDLE_INFORMATION> handles = Win32Processes.GetHandles(process, "Mutant");
                foreach (var handle in handles)
                {
                    string strObjectName2 = Win32Processes.getObjectName(handle, Process.GetProcessById(handle.ProcessID));
                    if (!string.IsNullOrWhiteSpace(strObjectName2) && strObjectName2.EndsWith(Mutex))
                    {
                        IntPtr ipHandle = IntPtr.Zero;
                        if (Win32API.DuplicateHandle(Process.GetProcessById(handle.ProcessID).Handle, handle.Handle, Win32API.GetCurrentProcess(), out ipHandle, 0, false, Win32API.DUPLICATE_CLOSE_SOURCE))
                        {
                            Console.WriteLine();
                            Console.WriteLine("Mutex was killed");
                            AutoClose();
                        }
                    }
                }

                Console.WriteLine();
            }
        }
        public static string getObjectTypeName(Win32API.SYSTEM_HANDLE_INFORMATION shHandle, Process process)
        {
            IntPtr m_ipProcessHwnd   = Win32API.OpenProcess(Win32API.ProcessAccessFlags.All, false, process.Id);
            IntPtr ipHandle          = IntPtr.Zero;
            var    objBasic          = new Win32API.OBJECT_BASIC_INFORMATION();
            IntPtr ipBasic           = IntPtr.Zero;
            var    objObjectType     = new Win32API.OBJECT_TYPE_INFORMATION();
            IntPtr ipObjectType      = IntPtr.Zero;
            IntPtr ipObjectName      = IntPtr.Zero;
            string strObjectTypeName = "";
            int    nLength           = 0;
            int    nReturn           = 0;
            IntPtr ipTemp            = IntPtr.Zero;

            if (!Win32API.DuplicateHandle(m_ipProcessHwnd, shHandle.Handle,
                                          Win32API.GetCurrentProcess(), out ipHandle,
                                          0, false, Win32API.DUPLICATE_SAME_ACCESS))
            {
                return(null);
            }

            ipBasic = Marshal.AllocHGlobal(Marshal.SizeOf(objBasic));
            Win32API.NtQueryObject(ipHandle, (int)Win32API.ObjectInformationClass.ObjectBasicInformation,
                                   ipBasic, Marshal.SizeOf(objBasic), ref nLength);
            objBasic = (Win32API.OBJECT_BASIC_INFORMATION)Marshal.PtrToStructure(ipBasic, objBasic.GetType());
            Marshal.FreeHGlobal(ipBasic);

            ipObjectType = Marshal.AllocHGlobal(objBasic.TypeInformationLength);
            nLength      = objBasic.TypeInformationLength;
            while ((uint)(nReturn = Win32API.NtQueryObject(
                              ipHandle, (int)Win32API.ObjectInformationClass.ObjectTypeInformation, ipObjectType,
                              nLength, ref nLength)) ==
                   Win32API.STATUS_INFO_LENGTH_MISMATCH)
            {
                Marshal.FreeHGlobal(ipObjectType);
                ipObjectType = Marshal.AllocHGlobal(nLength);
            }

            objObjectType = (Win32API.OBJECT_TYPE_INFORMATION)Marshal.PtrToStructure(ipObjectType, objObjectType.GetType());
            if (Is64Bits())
            {
                ipTemp = new IntPtr(Convert.ToInt64(objObjectType.Name.Buffer.ToString(), 10) >> 32);
            }
            else
            {
                ipTemp = objObjectType.Name.Buffer;
            }

            strObjectTypeName = Marshal.PtrToStringUni(ipTemp, objObjectType.Name.Length >> 1);
            Marshal.FreeHGlobal(ipObjectType);
            return(strObjectTypeName);
        }