From c3c27c3789b891cd7edb4c129042012801e51b1b Mon Sep 17 00:00:00 2001 From: Paul Werelds Date: Mon, 18 Oct 2010 07:15:31 +0000 Subject: [PATCH] Added a Parent property to the WMI exposed Hardware objects --- WMI/Hardware.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WMI/Hardware.cs b/WMI/Hardware.cs index c2a8ddb..ded6c75 100644 --- a/WMI/Hardware.cs +++ b/WMI/Hardware.cs @@ -46,6 +46,7 @@ namespace OpenHardwareMonitor.WMI { public string HardwareType { get; private set; } public string Identifier { get; private set; } public string Name { get; private set; } + public string Parent { get; private set; } #endregion @@ -53,6 +54,7 @@ namespace OpenHardwareMonitor.WMI { Name = hardware.Name; Identifier = hardware.Identifier.ToString(); HardwareType = hardware.HardwareType.ToString(); + Parent = hardware.Parent.Identifier.ToString(); } public void Update() { }