Added a WMI provider, documentation to follow.
1 using System.Management.Instrumentation;
2 using OpenHardwareMonitor.Hardware;
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; }
11 public Hardware(IHardware hardware) {
13 Identifier = hardware.Identifier.ToString();
14 HardwareType = hardware.HardwareType.ToString();
17 public void Update() { }