1.1 --- a/WMIProvider/Hardware.cs Sat Oct 16 13:29:06 2010 +0000
1.2 +++ b/WMIProvider/Hardware.cs Sat Oct 16 14:15:41 2010 +0000
1.3 @@ -1,13 +1,54 @@
1.4 -using System.Management.Instrumentation;
1.5 +/*
1.6 +
1.7 + Version: MPL 1.1/GPL 2.0/LGPL 2.1
1.8 +
1.9 + The contents of this file are subject to the Mozilla Public License Version
1.10 + 1.1 (the "License"); you may not use this file except in compliance with
1.11 + the License. You may obtain a copy of the License at
1.12 +
1.13 + http://www.mozilla.org/MPL/
1.14 +
1.15 + Software distributed under the License is distributed on an "AS IS" basis,
1.16 + WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
1.17 + for the specific language governing rights and limitations under the License.
1.18 +
1.19 + The Original Code is the Open Hardware Monitor code.
1.20 +
1.21 + The Initial Developer of the Original Code is
1.22 + Paul Werelds <paul@werelds.net>.
1.23 + Portions created by the Initial Developer are Copyright (C) 2009-2010
1.24 + the Initial Developer. All Rights Reserved.
1.25 +
1.26 + Contributor(s):
1.27 +
1.28 + Alternatively, the contents of this file may be used under the terms of
1.29 + either the GNU General Public License Version 2 or later (the "GPL"), or
1.30 + the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
1.31 + in which case the provisions of the GPL or the LGPL are applicable instead
1.32 + of those above. If you wish to allow use of your version of this file only
1.33 + under the terms of either the GPL or the LGPL, and not to allow others to
1.34 + use your version of this file under the terms of the MPL, indicate your
1.35 + decision by deleting the provisions above and replace them with the notice
1.36 + and other provisions required by the GPL or the LGPL. If you do not delete
1.37 + the provisions above, a recipient may use your version of this file under
1.38 + the terms of any one of the MPL, the GPL or the LGPL.
1.39 +
1.40 +*/
1.41 +
1.42 +using System.Management.Instrumentation;
1.43 using OpenHardwareMonitor.Hardware;
1.44
1.45 namespace OpenHardwareMonitor.WMIProvider {
1.46 [InstrumentationClass(InstrumentationType.Instance)]
1.47 - public class Hardware : IWmiClass {
1.48 + public class Hardware : IWmiObject {
1.49 + #region WMI Exposed
1.50 +
1.51 public string HardwareType { get; private set; }
1.52 public string Identifier { get; private set; }
1.53 public string Name { get; private set; }
1.54
1.55 + #endregion
1.56 +
1.57 public Hardware(IHardware hardware) {
1.58 Name = hardware.Name;
1.59 Identifier = hardware.Identifier.ToString();