diff --git a/Hardware/ATI/ADL.cs b/Hardware/ATI/ADL.cs index 0264d52..cebe3b4 100644 --- a/Hardware/ATI/ADL.cs +++ b/Hardware/ATI/ADL.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace OpenHardwareMonitor.Hardware.ATI { diff --git a/Hardware/ATI/ATIGPU.cs b/Hardware/ATI/ATIGPU.cs index e87b60e..8da38a7 100644 --- a/Hardware/ATI/ATIGPU.cs +++ b/Hardware/ATI/ATIGPU.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Globalization; namespace OpenHardwareMonitor.Hardware.ATI { diff --git a/Hardware/CPU/AMD0FCPU.cs b/Hardware/CPU/AMD0FCPU.cs index c54d8c8..f784aed 100644 --- a/Hardware/CPU/AMD0FCPU.cs +++ b/Hardware/CPU/AMD0FCPU.cs @@ -36,9 +36,7 @@ */ using System; -using System.Collections.Generic; using System.Globalization; -using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { internal sealed class AMD0FCPU : Hardware, IHardware { diff --git a/Hardware/CPU/CPUGroup.cs b/Hardware/CPU/CPUGroup.cs index 1d99f92..1660494 100644 --- a/Hardware/CPU/CPUGroup.cs +++ b/Hardware/CPU/CPUGroup.cs @@ -38,7 +38,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Diagnostics; using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { diff --git a/Hardware/CPU/CPUID.cs b/Hardware/CPU/CPUID.cs index 9544dd0..3cf39ee 100644 --- a/Hardware/CPU/CPUID.cs +++ b/Hardware/CPU/CPUID.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { diff --git a/Hardware/CPU/CPULoad.cs b/Hardware/CPU/CPULoad.cs index df876c3..859cbe7 100644 --- a/Hardware/CPU/CPULoad.cs +++ b/Hardware/CPU/CPULoad.cs @@ -36,9 +36,7 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace OpenHardwareMonitor.Hardware.CPU { internal class CPULoad { diff --git a/Hardware/CPU/IntelCPU.cs b/Hardware/CPU/IntelCPU.cs index cd76828..9513b22 100644 --- a/Hardware/CPU/IntelCPU.cs +++ b/Hardware/CPU/IntelCPU.cs @@ -39,10 +39,8 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Threading; using System.Text; +using System.Threading; namespace OpenHardwareMonitor.Hardware.CPU { internal sealed class IntelCPU : Hardware, IHardware { diff --git a/Hardware/Computer.cs b/Hardware/Computer.cs index 651b029..aacaad0 100644 --- a/Hardware/Computer.cs +++ b/Hardware/Computer.cs @@ -37,14 +37,10 @@ using System; using System.Collections.Generic; -using System.IO; using System.Globalization; -using System.Text; -using System.Threading; -using System.Security; +using System.IO; using System.Security.Permissions; - namespace OpenHardwareMonitor.Hardware { public class Computer : IComputer { diff --git a/Hardware/Hardware.cs b/Hardware/Hardware.cs index 7983742..5fe0ecf 100644 --- a/Hardware/Hardware.cs +++ b/Hardware/Hardware.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using OpenHardwareMonitor.Collections; namespace OpenHardwareMonitor.Hardware { diff --git a/Hardware/Heatmaster/Heatmaster.cs b/Hardware/Heatmaster/Heatmaster.cs index eef4c65..b273e91 100644 --- a/Hardware/Heatmaster/Heatmaster.cs +++ b/Hardware/Heatmaster/Heatmaster.cs @@ -36,7 +36,7 @@ */ using System; -using System.Collections.Generic; +using System.Globalization; using System.IO; using System.IO.Ports; using System.Text; @@ -44,7 +44,7 @@ using System.Text.RegularExpressions; using System.Threading; namespace OpenHardwareMonitor.Hardware.Heatmaster { - internal class Heatmaster : Hardware { + internal class Heatmaster : Hardware, IDisposable { private string portName; private SerialPort serialPort; @@ -85,8 +85,9 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { serialPort.WriteLine("[0:" + device + "]R" + field); for (int i = 0; i < 5; i++) { string s = ReadLine(200); - Match match = Regex.Match(s, @"-\[0:" + device.ToString() + @"\]R" + - Regex.Escape(field.ToString()) + ":(.*)"); + Match match = Regex.Match(s, @"-\[0:" + + device.ToString(CultureInfo.InvariantCulture) + @"\]R" + + Regex.Escape(field.ToString(CultureInfo.InvariantCulture)) + ":(.*)"); if (match.Success) return match.Groups[1].Value; } @@ -114,8 +115,10 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { serialPort.WriteLine("[0:" + device + "]W" + field + ":" + value); for (int i = 0; i < 5; i++) { string s = ReadLine(200); - Match match = Regex.Match(s, @"-\[0:" + device.ToString() + @"\]W" + - Regex.Escape(field.ToString()) + ":" + value); + Match match = Regex.Match(s, @"-\[0:" + + device.ToString(CultureInfo.InvariantCulture) + @"\]W" + + Regex.Escape(field.ToString(CultureInfo.InvariantCulture)) + + ":" + value); if (match.Success) return true; } @@ -123,7 +126,8 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { } private bool WriteInteger(int device, char field, int value) { - return WriteField(device, field, value.ToString()); + return WriteField(device, field, + value.ToString(CultureInfo.InvariantCulture)); } private bool WriteString(int device, char field, string value) { @@ -233,7 +237,7 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { string[] strings = s.Split(':'); int[] ints = new int[strings.Length]; for (int i = 0; i < ints.Length; i++) - ints[i] = int.Parse(strings[i]); + ints[i] = int.Parse(strings[i], CultureInfo.InvariantCulture); switch (device) { case 32: if (ints.Length == 3 && ints[0] <= fans.Length) { @@ -282,11 +286,11 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { r.Append("Port: "); r.AppendLine(portName); r.Append("Hardware Revision: "); - r.AppendLine(hardwareRevision.ToString()); + r.AppendLine(hardwareRevision.ToString(CultureInfo.InvariantCulture)); r.Append("Firmware Revision: "); - r.AppendLine(firmwareRevision.ToString()); + r.AppendLine(firmwareRevision.ToString(CultureInfo.InvariantCulture)); r.Append("Firmware CRC: "); - r.AppendLine(firmwareCRC.ToString()); + r.AppendLine(firmwareCRC.ToString(CultureInfo.InvariantCulture)); r.AppendLine(); return r.ToString(); @@ -294,6 +298,15 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { public void Close() { serialPort.Close(); + serialPort.Dispose(); + serialPort = null; + } + + public void Dispose() { + if (serialPort != null) { + serialPort.Dispose(); + serialPort = null; + } } } } diff --git a/Hardware/Heatmaster/HeatmasterGroup.cs b/Hardware/Heatmaster/HeatmasterGroup.cs index 0a745dc..499d567 100644 --- a/Hardware/Heatmaster/HeatmasterGroup.cs +++ b/Hardware/Heatmaster/HeatmasterGroup.cs @@ -37,6 +37,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO.Ports; using System.Security; using System.Text; @@ -99,77 +100,77 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster { string[] portNames = GetRegistryPortNames(); for (int i = portNames.Length - 1; i >= 0; i--) { - try { + bool isValid = false; + try { + using (SerialPort serialPort = + new SerialPort(portNames[i], 38400, Parity.None, 8, StopBits.One)) { + serialPort.NewLine = ((char)0x0D).ToString(); + report.Append("Port Name: "); report.AppendLine(portNames[i]); - SerialPort serialPort = - new SerialPort(portNames[i], 38400, Parity.None, 8, StopBits.One); - serialPort.NewLine = ((char)0x0D).ToString(); - - bool isValid = false; - report.Append("Port Name: "); report.AppendLine(portNames[i]); - - try { - serialPort.Open(); - } catch (UnauthorizedAccessException) { - report.AppendLine("Exception: Access Denied"); - } - - if (serialPort.IsOpen) { - serialPort.DiscardInBuffer(); - serialPort.DiscardOutBuffer(); - serialPort.Write(new byte[] { 0xAA }, 0, 1); - - int j = 0; - while (serialPort.BytesToRead == 0 && j < 10) { - Thread.Sleep(20); - j++; + try { + serialPort.Open(); + } catch (UnauthorizedAccessException) { + report.AppendLine("Exception: Access Denied"); } - if (serialPort.BytesToRead > 0) { - bool flag = false; - while (serialPort.BytesToRead > 0 && !flag) { - flag |= (serialPort.ReadByte() == 0xAA); + + if (serialPort.IsOpen) { + serialPort.DiscardInBuffer(); + serialPort.DiscardOutBuffer(); + serialPort.Write(new byte[] { 0xAA }, 0, 1); + + int j = 0; + while (serialPort.BytesToRead == 0 && j < 10) { + Thread.Sleep(20); + j++; } - if (flag) { - serialPort.WriteLine("[0:0]RH"); - try { - int k = 0; - int revision = 0; - while (k < 5) { - string line = ReadLine(serialPort, 100); - if (line.StartsWith("-[0:0]RH:")) { - int.TryParse(line.Substring(9), out revision); - break; + if (serialPort.BytesToRead > 0) { + bool flag = false; + while (serialPort.BytesToRead > 0 && !flag) { + flag |= (serialPort.ReadByte() == 0xAA); + } + if (flag) { + serialPort.WriteLine("[0:0]RH"); + try { + int k = 0; + int revision = 0; + while (k < 5) { + string line = ReadLine(serialPort, 100); + if (line.StartsWith("-[0:0]RH:", + StringComparison.Ordinal)) { + revision = int.Parse(line.Substring(9), + CultureInfo.InvariantCulture); + break; + } + k++; } - k++; + isValid = (revision == 770); + if (!isValid) { + report.Append("Status: Wrong Hardware Revision " + + revision.ToString(CultureInfo.InvariantCulture)); + } + } catch (TimeoutException) { + report.AppendLine("Status: Timeout Reading Revision"); } - isValid = (revision == 770); - if (!isValid) { - report.Append("Status: Wrong Hardware Revision " + - revision.ToString()); - } - } catch (TimeoutException) { - report.AppendLine("Status: Timeout Reading Revision"); + } else { + report.AppendLine("Status: Wrong Startflag"); } } else { - report.AppendLine("Status: Wrong Startflag"); + report.AppendLine("Status: No Response"); } + serialPort.DiscardInBuffer(); } else { - report.AppendLine("Status: No Response"); - } - serialPort.DiscardInBuffer(); - serialPort.Close(); - serialPort.Dispose(); - } else { - report.AppendLine("Status: Port not Open"); - } - if (isValid) { - report.AppendLine("Status: OK"); - hardware.Add(new Heatmaster(portNames[i], settings)); - return; + report.AppendLine("Status: Port not Open"); + } } } catch (Exception e) { report.AppendLine(e.ToString()); - } + } + + if (isValid) { + report.AppendLine("Status: OK"); + hardware.Add(new Heatmaster(portNames[i], settings)); + return; + } report.AppendLine(); } } diff --git a/Hardware/HexStringArray.cs b/Hardware/HexStringArray.cs index 0facce6..f99d55a 100644 --- a/Hardware/HexStringArray.cs +++ b/Hardware/HexStringArray.cs @@ -37,7 +37,6 @@ using System; using System.Collections.Generic; -using System.Text; namespace OpenHardwareMonitor.Hardware { internal class HexStringArray { diff --git a/Hardware/IComputer.cs b/Hardware/IComputer.cs index 24f7f0a..e608c2f 100644 --- a/Hardware/IComputer.cs +++ b/Hardware/IComputer.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public delegate void HardwareEventHandler(IHardware hardware); diff --git a/Hardware/IElement.cs b/Hardware/IElement.cs index a7cc849..8007761 100644 --- a/Hardware/IElement.cs +++ b/Hardware/IElement.cs @@ -35,10 +35,6 @@ */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenHardwareMonitor.Hardware { public interface IElement { diff --git a/Hardware/IGroup.cs b/Hardware/IGroup.cs index 3f6e3f2..24bd2c9 100644 --- a/Hardware/IGroup.cs +++ b/Hardware/IGroup.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { internal interface IGroup { diff --git a/Hardware/IHardware.cs b/Hardware/IHardware.cs index 0dd88c4..a640148 100644 --- a/Hardware/IHardware.cs +++ b/Hardware/IHardware.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public delegate void SensorEventHandler(ISensor sensor); diff --git a/Hardware/IParameter.cs b/Hardware/IParameter.cs index 7f78390..e19ecdb 100644 --- a/Hardware/IParameter.cs +++ b/Hardware/IParameter.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public interface IParameter : IElement { diff --git a/Hardware/ISettings.cs b/Hardware/ISettings.cs index 6e681b0..35d4b84 100644 --- a/Hardware/ISettings.cs +++ b/Hardware/ISettings.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware { public interface ISettings { diff --git a/Hardware/IVisitor.cs b/Hardware/IVisitor.cs index be7a468..5a8ef92 100644 --- a/Hardware/IVisitor.cs +++ b/Hardware/IVisitor.cs @@ -35,10 +35,6 @@ */ -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenHardwareMonitor.Hardware { public interface IVisitor { diff --git a/Hardware/Identifier.cs b/Hardware/Identifier.cs index 58cb99d..1e95851 100644 --- a/Hardware/Identifier.cs +++ b/Hardware/Identifier.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Text; namespace OpenHardwareMonitor.Hardware { @@ -45,7 +44,7 @@ namespace OpenHardwareMonitor.Hardware { private static char SEPARATOR = '/'; - private static void CheckIdentifiers(string[] identifiers) { + private static void CheckIdentifiers(string[] identifiers) { foreach (string s in identifiers) if (s.Contains(" ") || s.Contains(SEPARATOR.ToString())) throw new ArgumentException("Invalid identifier"); @@ -97,7 +96,34 @@ namespace OpenHardwareMonitor.Hardware { if (other == null) return 1; else - return this.identifier.CompareTo(other.identifier); + return string.Compare(this.identifier, other.identifier, + StringComparison.Ordinal); } + + public static bool operator ==(Identifier id1, Identifier id2) { + if (id1 == null) + return id2 == null; + else + return id1.Equals(id2); + } + + public static bool operator !=(Identifier id1, Identifier id2) { + return !(id1 == id2); + } + + public static bool operator <(Identifier id1, Identifier id2) { + if (id1 == null) + return id2 != null; + else + return (id1.CompareTo(id2) < 0); + } + + public static bool operator >(Identifier id1, Identifier id2) { + if (id1 == null) + return false; + else + return (id1.CompareTo(id2) > 0); + } + } } diff --git a/Hardware/LPC/Chip.cs b/Hardware/LPC/Chip.cs index fbe6650..bf96e5c 100644 --- a/Hardware/LPC/Chip.cs +++ b/Hardware/LPC/Chip.cs @@ -1,7 +1,39 @@ - -using System; -using System.Collections.Generic; -using System.Text; +/* + + Version: MPL 1.1/GPL 2.0/LGPL 2.1 + + The contents of this file are subject to the Mozilla Public License Version + 1.1 (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.mozilla.org/MPL/ + + Software distributed under the License is distributed on an "AS IS" basis, + WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + for the specific language governing rights and limitations under the License. + + The Original Code is the Open Hardware Monitor code. + + The Initial Developer of the Original Code is + Michael Möller . + Portions created by the Initial Developer are Copyright (C) 2009-2010 + the Initial Developer. All Rights Reserved. + + Contributor(s): + + Alternatively, the contents of this file may be used under the terms of + either the GNU General Public License Version 2 or later (the "GPL"), or + the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + in which case the provisions of the GPL or the LGPL are applicable instead + of those above. If you wish to allow use of your version of this file only + under the terms of either the GPL or the LGPL, and not to allow others to + use your version of this file under the terms of the MPL, indicate your + decision by deleting the provisions above and replace them with the notice + and other provisions required by the GPL or the LGPL. If you do not delete + the provisions above, a recipient may use your version of this file under + the terms of any one of the MPL, the GPL or the LGPL. + +*/ namespace OpenHardwareMonitor.Hardware.LPC { @@ -59,7 +91,6 @@ namespace OpenHardwareMonitor.Hardware.LPC { default: return "Unknown"; } } - } } diff --git a/Hardware/LPC/ISuperIO.cs b/Hardware/LPC/ISuperIO.cs index 146146f..d8ce4c8 100644 --- a/Hardware/LPC/ISuperIO.cs +++ b/Hardware/LPC/ISuperIO.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware.LPC { internal interface ISuperIO { diff --git a/Hardware/LPC/IT87XX.cs b/Hardware/LPC/IT87XX.cs index e1b78ed..c088825 100644 --- a/Hardware/LPC/IT87XX.cs +++ b/Hardware/LPC/IT87XX.cs @@ -35,8 +35,6 @@ */ -using System; -using System.Collections.Generic; using System.Globalization; using System.Text; diff --git a/Hardware/LPC/LMSensors.cs b/Hardware/LPC/LMSensors.cs index c6a3add..f34d147 100755 --- a/Hardware/LPC/LMSensors.cs +++ b/Hardware/LPC/LMSensors.cs @@ -35,7 +35,6 @@ */ -using System; using System.Collections.Generic; using System.Globalization; using System.IO; diff --git a/Hardware/LPC/W836XX.cs b/Hardware/LPC/W836XX.cs index 8d918b2..59785ba 100644 --- a/Hardware/LPC/W836XX.cs +++ b/Hardware/LPC/W836XX.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Globalization; using System.Text; diff --git a/Hardware/Mainboard/Mainboard.cs b/Hardware/Mainboard/Mainboard.cs index 97b9978..a68cdab 100644 --- a/Hardware/Mainboard/Mainboard.cs +++ b/Hardware/Mainboard/Mainboard.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Text; using OpenHardwareMonitor.Hardware.LPC; diff --git a/Hardware/Mainboard/MainboardGroup.cs b/Hardware/Mainboard/MainboardGroup.cs index 53ae715..9ea1bbd 100644 --- a/Hardware/Mainboard/MainboardGroup.cs +++ b/Hardware/Mainboard/MainboardGroup.cs @@ -35,9 +35,6 @@ */ -using System; -using System.Collections.Generic; - namespace OpenHardwareMonitor.Hardware.Mainboard { internal class MainboardGroup : IGroup { diff --git a/Hardware/Mainboard/SuperIOHardware.cs b/Hardware/Mainboard/SuperIOHardware.cs index b3a8d72..405b430 100644 --- a/Hardware/Mainboard/SuperIOHardware.cs +++ b/Hardware/Mainboard/SuperIOHardware.cs @@ -35,7 +35,6 @@ */ -using System; using System.Collections.Generic; using System.Globalization; using OpenHardwareMonitor.Hardware.LPC; diff --git a/Hardware/Nvidia/NVAPI.cs b/Hardware/Nvidia/NVAPI.cs index bed595c..3b6e4a2 100644 --- a/Hardware/Nvidia/NVAPI.cs +++ b/Hardware/Nvidia/NVAPI.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; diff --git a/Hardware/Nvidia/NvidiaGPU.cs b/Hardware/Nvidia/NvidiaGPU.cs index bc29e19..3e3bd56 100644 --- a/Hardware/Nvidia/NvidiaGPU.cs +++ b/Hardware/Nvidia/NvidiaGPU.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Globalization; using System.Text; diff --git a/Hardware/Nvidia/NvidiaGroup.cs b/Hardware/Nvidia/NvidiaGroup.cs index e7f7021..e0ca378 100644 --- a/Hardware/Nvidia/NvidiaGroup.cs +++ b/Hardware/Nvidia/NvidiaGroup.cs @@ -35,7 +35,6 @@ */ -using System; using System.Collections.Generic; using System.Globalization; using System.Text; diff --git a/Hardware/Parameter.cs b/Hardware/Parameter.cs index aaafe02..0be06b5 100644 --- a/Hardware/Parameter.cs +++ b/Hardware/Parameter.cs @@ -37,7 +37,6 @@ using System; using System.Globalization; -using System.Collections.Generic; namespace OpenHardwareMonitor.Hardware { diff --git a/Hardware/SensorVisitor.cs b/Hardware/SensorVisitor.cs index 530d6f0..12d7df0 100644 --- a/Hardware/SensorVisitor.cs +++ b/Hardware/SensorVisitor.cs @@ -37,7 +37,6 @@ using System; using System.Collections.Generic; -using OpenHardwareMonitor.Hardware; namespace OpenHardwareMonitor.Hardware { diff --git a/Hardware/TBalancer/FTD2XX.cs b/Hardware/TBalancer/FTD2XX.cs index 37fba9d..32118e8 100644 --- a/Hardware/TBalancer/FTD2XX.cs +++ b/Hardware/TBalancer/FTD2XX.cs @@ -36,7 +36,6 @@ */ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace OpenHardwareMonitor.Hardware.TBalancer { diff --git a/Hardware/TBalancer/TBalancer.cs b/Hardware/TBalancer/TBalancer.cs index 9e86f39..8b622f3 100644 --- a/Hardware/TBalancer/TBalancer.cs +++ b/Hardware/TBalancer/TBalancer.cs @@ -37,7 +37,6 @@ using System; using System.Collections.Generic; -using System.Configuration; using System.Globalization; using System.Text; diff --git a/Hardware/TBalancer/TBalancerGroup.cs b/Hardware/TBalancer/TBalancerGroup.cs index 275d7a3..c2bd029 100644 --- a/Hardware/TBalancer/TBalancerGroup.cs +++ b/Hardware/TBalancer/TBalancerGroup.cs @@ -38,8 +38,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.IO.Ports; using System.Text; using System.Threading; diff --git a/Hardware/WinRing0.cs b/Hardware/WinRing0.cs index ef22563..14ad751 100644 --- a/Hardware/WinRing0.cs +++ b/Hardware/WinRing0.cs @@ -36,8 +36,6 @@ */ using System; -using System.Collections.Generic; -using System.IO; using System.Runtime.InteropServices; using System.Threading;