using System;
using System.Collections.Generic;
using System.Text;
namespace Tango.SystemInfo
{
class Win32_Processor : IWMI
{
Connection WMIConnection;
public Win32_Processor(Connection WMIConnection)
{
this.WMIConnection = WMIConnection;
}
public IList<SystemObject> GetHardwareInfoList()
{
string className = System.Text.RegularExpressions.Regex.Match(
this.GetType().ToString(), "Win32_.*").Value;
return WMIReader.GetPropertyValues(WMIConnection,
"SELECT * FROM " + className,
className);
}
}
}