1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/WMIProvider/Hardware.cs Sat Oct 16 13:29:06 2010 +0000
1.3 @@ -0,0 +1,19 @@
1.4 +using System.Management.Instrumentation;
1.5 +using OpenHardwareMonitor.Hardware;
1.6 +
1.7 +namespace OpenHardwareMonitor.WMIProvider {
1.8 + [InstrumentationClass(InstrumentationType.Instance)]
1.9 + public class Hardware : IWmiClass {
1.10 + public string HardwareType { get; private set; }
1.11 + public string Identifier { get; private set; }
1.12 + public string Name { get; private set; }
1.13 +
1.14 + public Hardware(IHardware hardware) {
1.15 + Name = hardware.Name;
1.16 + Identifier = hardware.Identifier.ToString();
1.17 + HardwareType = hardware.HardwareType.ToString();
1.18 + }
1.19 +
1.20 + public void Update() { }
1.21 + }
1.22 +}