WMIProvider/Hardware.cs
author paulwerelds
Sat, 16 Oct 2010 13:29:06 +0000
changeset 223 39f73ac8c2f4
child 224 be9534663a55
permissions -rw-r--r--
Added a WMI provider, documentation to follow.
     1 using System.Management.Instrumentation;
     2 using OpenHardwareMonitor.Hardware;
     3 
     4 namespace OpenHardwareMonitor.WMIProvider {
     5   [InstrumentationClass(InstrumentationType.Instance)]
     6   public class Hardware : IWmiClass {
     7     public string HardwareType { get; private set; }
     8     public string Identifier { get; private set; }
     9     public string Name { get; private set; }
    10 
    11     public Hardware(IHardware hardware) {
    12       Name = hardware.Name;
    13       Identifier = hardware.Identifier.ToString();
    14       HardwareType = hardware.HardwareType.ToString();
    15     }
    16 
    17     public void Update() { }
    18   }
    19 }