first commit

This commit is contained in:
2025-04-07 07:44:27 -07:00
commit d6cde0c05e
512 changed files with 142392 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Copyright (C) LibreHardwareMonitor and Contributors.
// Partial Copyright (C) Michael Möller <mmoeller@openhardwaremonitor.org> and Contributors.
// All Rights Reserved.
using System.Management.Instrumentation;
using LibreHardwareMonitor.Hardware;
namespace LibreHardwareMonitor.Wmi;
[InstrumentationClass(InstrumentationType.Instance)]
public class Hardware : IWmiObject
{
#region WMI Exposed
public string HardwareType { get; }
public string Identifier { get; }
public string Name { get; }
public string Parent { get; }
#endregion
public Hardware(IHardware hardware)
{
Name = hardware.Name;
Identifier = hardware.Identifier.ToString();
HardwareType = hardware.HardwareType.ToString();
Parent = (hardware.Parent != null)
? hardware.Parent.Identifier.ToString()
: "";
}
public void Update() { }
}