Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Management;
- namespace WMISharp
- {
- /*
- * Pulled " public Int16 PowerManagementCapabilities[]; " for now
- */
- public class Processor
- {
- public DateTime InstallDate;
- public Boolean ConfigManagerUserConfig;
- public Boolean PowerManagementSupported;
- public Boolean ErrorCleared;
- public Int32 ConfigManagerErrorCode;
- public Int32 ExtClock;
- public Int32 L2CacheSize;
- public Int32 L2CacheSpeed;
- public Int32 L3CacheSize;
- public Int32 L3CacheSpeed;
- public Int32 LastErrorCode;
- public Int32 MaxClockSpeed;
- public Int32 NumberOfCores;
- public Int32 NumberOfLogicalProcessors;
- public Int32 VoltageCaps;
- public Int16 AddressWidth;
- public Int16 Architecture;
- public Int16 Availability;
- public Int16 DataWidth;
- public Int16 Family;
- public Int16 Level;
- public Int16 ProcessorType;
- public Int16 Revision;
- public Int16 UpgradeMethod;
- public String Caption;
- public String CreationClassName;
- public String Description;
- public String DeviceID;
- public String ErrorDescription;
- public String Manufacturer;
- public String Name;
- public String OtherFamilyDescription;
- public String PNPDeviceID;
- public String ProcessorId;
- public String Role;
- public String SocketDesignation;
- public String Status;
- public String Stepping;
- public String SystemCreationClassName;
- public String SystemName;
- public String UniqueId;
- public String Version;
- public String Str_Architecture;
- public String Str_Availability;
- public String Str_ConfigManagerErrorCode;
- public String Str_CpuStatus;
- public String Str_Family;
- public String Str_ProcessorType;
- public String Str_StatusInfo;
- public String Str_UpgradeMethod;
- public String Str_VoltageCaps;
- public Int32 CurrentClockSpeed
- {
- get
- {
- Int32 RetVal = 0;
- foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
- {
- RetVal = Convert.ToInt32(obj["CurrentClockSpeed"]);
- }
- return RetVal;
- }
- }
- public Int16 CpuStatus
- {
- get
- {
- Int16 RetVal = 0;
- foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
- {
- RetVal = Convert.ToInt16(obj["CpuStatus"]);
- }
- return RetVal;
- }
- }
- public Int16 CurrentVoltage
- {
- get
- {
- Int16 RetVal = 0;
- foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
- {
- RetVal = Convert.ToInt16(obj["CurrentVoltage"]);
- }
- return RetVal;
- }
- }
- public Int16 LoadPercentage
- {
- get
- {
- Int16 RetVal = 0;
- foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
- {
- RetVal = Convert.ToInt16(obj["LoadPercentage"]);
- }
- return RetVal;
- }
- }
- public Int16 StatusInfo
- {
- get
- {
- Int16 RetVal = 0;
- foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
- {
- RetVal = Convert.ToInt16(obj["StatusInfo"]);
- }
- return RetVal;
- }
- }
- public Processor()
- {
- foreach (ManagementObject obj in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
- {
- InstallDate = Convert.ToDateTime(obj["InstallDate"]);
- ConfigManagerUserConfig = Convert.ToBoolean(obj["ConfigManagerUserConfig"]);
- PowerManagementSupported = Convert.ToBoolean(obj["PowerManagementSupported"]);
- ErrorCleared = Convert.ToBoolean(obj["ErrorCleared"]);
- ConfigManagerErrorCode = Convert.ToInt32(obj["ConfigManagerErrorCode"]);
- ExtClock = Convert.ToInt32(obj["ExtClock"]);
- L2CacheSize = Convert.ToInt32(obj["L2CacheSize"]);
- L2CacheSpeed = Convert.ToInt32(obj["L2CacheSpeed"]);
- L3CacheSize = Convert.ToInt32(obj["L3CacheSize"]);
- L3CacheSpeed = Convert.ToInt32(obj["L3CacheSpeed"]);
- LastErrorCode = Convert.ToInt32(obj["LastErrorCode"]);
- MaxClockSpeed = Convert.ToInt32(obj["MaxClockSpeed"]);
- NumberOfCores = Convert.ToInt32(obj["NumberOfCores"]);
- NumberOfLogicalProcessors = Convert.ToInt32(obj["NumberOfLogicalProcessors"]);
- VoltageCaps = Convert.ToInt32(obj["VoltageCaps"]);
- AddressWidth = Convert.ToInt16(obj["AddressWidth"]);
- Architecture = Convert.ToInt16(obj["Architecture"]);
- Availability = Convert.ToInt16(obj["Availability"]);
- DataWidth = Convert.ToInt16(obj["DataWidth"]);
- Family = Convert.ToInt16(obj["Family"]);
- Level = Convert.ToInt16(obj["Level"]);
- ProcessorType = Convert.ToInt16(obj["ProcessorType"]);
- Revision = Convert.ToInt16(obj["Revision"]);
- UpgradeMethod = Convert.ToInt16(obj["UpgradeMethod"]);
- Caption = Convert.ToString(obj["Caption"]);
- CreationClassName = Convert.ToString(obj["CreationClassName"]);
- Description = Convert.ToString(obj["Description"]);
- DeviceID = Convert.ToString(obj["DeviceID"]);
- ErrorDescription = Convert.ToString(obj["ErrorDescription"]);
- Manufacturer = Convert.ToString(obj["Manufacturer"]);
- Name = Convert.ToString(obj["Name"]);
- OtherFamilyDescription = Convert.ToString(obj["OtherFamilyDescription"]);
- PNPDeviceID = Convert.ToString(obj["PNPDeviceID"]);
- ProcessorId = Convert.ToString(obj["ProcessorId"]);
- Role = Convert.ToString(obj["Role"]);
- SocketDesignation = Convert.ToString(obj["SocketDesignation"]);
- Status = Convert.ToString(obj["Status"]);
- Stepping = Convert.ToString(obj["Stepping"]);
- SystemCreationClassName = Convert.ToString(obj["SystemCreationClassName"]);
- SystemName = Convert.ToString(obj["SystemName"]);
- UniqueId = Convert.ToString(obj["UniqueId"]);
- Version = Convert.ToString(obj["Version"]);
- }
- #region Architecture String
- if (Architecture == 0)
- {
- Str_Architecture = "x86";
- }
- else if (Architecture == 1)
- {
- Str_Architecture = "MIPS";
- }
- else if (Architecture == 2)
- {
- Str_Architecture = "Alpha";
- }
- else if (Architecture == 3)
- {
- Str_Architecture = "PowerPC";
- }
- else if (Architecture == 5)
- {
- Str_Architecture = "ARM";
- }
- else if (Architecture == 6)
- {
- Str_Architecture = "Itanium-based systems";
- }
- else if (Architecture == 9)
- {
- Str_Architecture = "x64";
- }
- #endregion
- #region Availability String
- if (Availability == 1)
- {
- Str_Availability = "Other";
- }
- else if (Availability == 2)
- {
- Str_Availability = "Unknown";
- }
- else if (Availability == 3)
- {
- Str_Availability = "Running or Full Power";
- }
- else if (Availability == 4)
- {
- Str_Availability = "Warning";
- }
- else if (Availability == 5)
- {
- Str_Availability = "In Test";
- }
- else if (Availability == 6)
- {
- Str_Availability = "Not Applicable";
- }
- else if (Availability == 7)
- {
- Str_Availability = "Power Off";
- }
- else if (Availability == 8)
- {
- Str_Availability = "Off Line";
- }
- else if (Availability == 9)
- {
- Str_Availability = "Off Duty";
- }
- else if (Availability == 10)
- {
- Str_Availability = "Degraded";
- }
- else if (Availability == 11)
- {
- Str_Availability = "Not Installed";
- }
- else if (Availability == 12)
- {
- Str_Availability = "Install Error";
- }
- else if (Availability == 13)
- {
- Str_Availability = "Power Save - Unknown";
- }
- else if (Availability == 14)
- {
- Str_Availability = "Power Save - Low Power Mode";
- }
- else if (Availability == 15)
- {
- Str_Availability = "Power Save - Standby";
- }
- else if (Availability == 16)
- {
- Str_Availability = "Power Cycle";
- }
- else if (Availability == 17)
- {
- Str_Availability = "Power Save - Warning";
- }
- #endregion
- #region ConfigManagerErrorCode String
- if (ConfigManagerErrorCode == 0)
- {
- Str_ConfigManagerErrorCode = "Device is working properly.";
- }
- else if (ConfigManagerErrorCode == 1)
- {
- Str_ConfigManagerErrorCode = "Device is not configured correctly.";
- }
- else if (ConfigManagerErrorCode == 2)
- {
- Str_ConfigManagerErrorCode = "Windows cannot load the driver for this device.";
- }
- else if (ConfigManagerErrorCode == 3)
- {
- Str_ConfigManagerErrorCode = "Driver for this device might be corrupted or the system may be low on memory or other resources.";
- }
- else if (ConfigManagerErrorCode == 4)
- {
- Str_ConfigManagerErrorCode = "Device is not working properly. One of its drivers or the registry might be corrupted.";
- }
- else if (ConfigManagerErrorCode == 5)
- {
- Str_ConfigManagerErrorCode = "Driver for the device requires a resource that Windows cannot manage.";
- }
- else if (ConfigManagerErrorCode == 6)
- {
- Str_ConfigManagerErrorCode = "Boot configuration for the device conflicts with other devices.";
- }
- else if (ConfigManagerErrorCode == 7)
- {
- Str_ConfigManagerErrorCode = "Cannot filter.";
- }
- else if (ConfigManagerErrorCode == 8)
- {
- Str_ConfigManagerErrorCode = "Driver loader for the device is missing.";
- }
- else if (ConfigManagerErrorCode == 9)
- {
- Str_ConfigManagerErrorCode = "Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device.";
- }
- else if (ConfigManagerErrorCode == 10)
- {
- Str_ConfigManagerErrorCode = "Device cannot start.";
- }
- else if (ConfigManagerErrorCode == 11)
- {
- Str_ConfigManagerErrorCode = "Device failed.";
- }
- else if (ConfigManagerErrorCode == 12)
- {
- Str_ConfigManagerErrorCode = "Device cannot find enough free resources to use.";
- }
- else if (ConfigManagerErrorCode == 13)
- {
- Str_ConfigManagerErrorCode = "Windows cannot verify the device's resources.";
- }
- else if (ConfigManagerErrorCode == 14)
- {
- Str_ConfigManagerErrorCode = "Device cannot work properly until the computer is restarted.";
- }
- else if (ConfigManagerErrorCode == 15)
- {
- Str_ConfigManagerErrorCode = "Device is not working properly due to a possible re-enumeration problem.";
- }
- else if (ConfigManagerErrorCode == 16)
- {
- Str_ConfigManagerErrorCode = "Windows cannot identify all of the resources that the device uses.";
- }
- else if (ConfigManagerErrorCode == 17)
- {
- Str_ConfigManagerErrorCode = "Device is requesting an unknown resource type.";
- }
- else if (ConfigManagerErrorCode == 18)
- {
- Str_ConfigManagerErrorCode = "Device drivers must be reinstalled.";
- }
- else if (ConfigManagerErrorCode == 19)
- {
- Str_ConfigManagerErrorCode = "Failure using the VxD loader.";
- }
- else if (ConfigManagerErrorCode == 20)
- {
- Str_ConfigManagerErrorCode = "Registry might be corrupted.";
- }
- else if (ConfigManagerErrorCode == 21)
- {
- Str_ConfigManagerErrorCode = "System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device.";
- }
- else if (ConfigManagerErrorCode == 22)
- {
- Str_ConfigManagerErrorCode = "Device is disabled.";
- }
- else if (ConfigManagerErrorCode == 23)
- {
- Str_ConfigManagerErrorCode = "System failure. If changing the device driver is ineffective, see the hardware documentation.";
- }
- else if (ConfigManagerErrorCode == 24)
- {
- Str_ConfigManagerErrorCode = "Device is not present, not working properly, or does not have all of its drivers installed.";
- }
- else if (ConfigManagerErrorCode == 25)
- {
- Str_ConfigManagerErrorCode = "Windows is still setting up the device.";
- }
- else if (ConfigManagerErrorCode == 26)
- {
- Str_ConfigManagerErrorCode = "Windows is still setting up the device.";
- }
- else if (ConfigManagerErrorCode == 27)
- {
- Str_ConfigManagerErrorCode = "Device does not have valid log configuration.";
- }
- else if (ConfigManagerErrorCode == 28)
- {
- Str_ConfigManagerErrorCode = "Device drivers are not installed.";
- }
- else if (ConfigManagerErrorCode == 29)
- {
- Str_ConfigManagerErrorCode = "Device is disabled. The device firmware did not provide the required resources.";
- }
- else if (ConfigManagerErrorCode == 30)
- {
- Str_ConfigManagerErrorCode = "Device is using an IRQ resource that another device is using.";
- }
- else if (ConfigManagerErrorCode == 31)
- {
- Str_ConfigManagerErrorCode = "Device is not working properly. Windows cannot load the required device drivers.";
- }
- #endregion
- #region CpuStatus String
- if (CpuStatus == 0)
- {
- Str_CpuStatus = "Unknown";
- }
- else if (CpuStatus == 1)
- {
- Str_CpuStatus = "CPU Enabled";
- }
- else if (CpuStatus == 2)
- {
- Str_CpuStatus = "CPU Disabled by User via BIOS Setup";
- }
- else if (CpuStatus == 3)
- {
- Str_CpuStatus = "CPU Disabled by BIOS (POST Error)";
- }
- else if (CpuStatus == 4)
- {
- Str_CpuStatus = "CPU Is Idle";
- }
- else if (CpuStatus == 5)
- {
- Str_CpuStatus = "Reserved";
- }
- else if (CpuStatus == 6)
- {
- Str_CpuStatus = "Reserved";
- }
- else if (CpuStatus == 7)
- {
- Str_CpuStatus = "Other";
- }
- #endregion
- #region Family String
- if (Family == 1)
- {
- Str_Family = "Other";
- }
- else if (Family == 2)
- {
- Str_Family = "Unknown";
- }
- else if (Family == 3)
- {
- Str_Family = "8086";
- }
- else if (Family == 4)
- {
- Str_Family = "80286";
- }
- else if (Family == 5)
- {
- Str_Family = "Intel386™ Processor";
- }
- else if (Family == 6)
- {
- Str_Family = "Intel486™ Processor";
- }
- else if (Family == 7)
- {
- Str_Family = "8087";
- }
- else if (Family == 8)
- {
- Str_Family = "80287";
- }
- else if (Family == 9)
- {
- Str_Family = "80387";
- }
- else if (Family == 10)
- {
- Str_Family = "80487";
- }
- else if (Family == 11)
- {
- Str_Family = "Pentium Brand";
- }
- else if (Family == 12)
- {
- Str_Family = "Pentium Pro";
- }
- else if (Family == 13)
- {
- Str_Family = "Pentium II";
- }
- else if (Family == 14)
- {
- Str_Family = "Pentium Processor with MMX™ Technology";
- }
- else if (Family == 15)
- {
- Str_Family = "Celeron™";
- }
- else if (Family == 16)
- {
- Str_Family = "Pentium II Xeon™";
- }
- else if (Family == 17)
- {
- Str_Family = "Pentium III";
- }
- else if (Family == 18)
- {
- Str_Family = "M1 Family";
- }
- else if (Family == 19)
- {
- Str_Family = "M2 Family";
- }
- else if (Family == 24)
- {
- Str_Family = "AMD Duron™ Processor Family";
- }
- else if (Family == 25)
- {
- Str_Family = "K5 Family";
- }
- else if (Family == 26)
- {
- Str_Family = "K6 Family";
- }
- else if (Family == 27)
- {
- Str_Family = "K6-2";
- }
- else if (Family == 28)
- {
- Str_Family = "K6-3";
- }
- else if (Family == 29)
- {
- Str_Family = "AMD Athlon™ Processor Family";
- }
- else if (Family == 30)
- {
- Str_Family = "AMD2900 Family";
- }
- else if (Family == 31)
- {
- Str_Family = "K6-2+";
- }
- else if (Family == 32)
- {
- Str_Family = "Power PC Family";
- }
- else if (Family == 33)
- {
- Str_Family = "Power PC 601";
- }
- else if (Family == 34)
- {
- Str_Family = "Power PC 603";
- }
- else if (Family == 35)
- {
- Str_Family = "Power PC 603+";
- }
- else if (Family == 36)
- {
- Str_Family = "Power PC 604";
- }
- else if (Family == 37)
- {
- Str_Family = "Power PC 620";
- }
- else if (Family == 38)
- {
- Str_Family = "Power PC X704";
- }
- else if (Family == 39)
- {
- Str_Family = "Power PC 750";
- }
- else if (Family == 48)
- {
- Str_Family = "Alpha Family";
- }
- else if (Family == 49)
- {
- Str_Family = "Alpha 21064";
- }
- else if (Family == 50)
- {
- Str_Family = "Alpha 21066";
- }
- else if (Family == 51)
- {
- Str_Family = "Alpha 21164";
- }
- else if (Family == 52)
- {
- Str_Family = "Alpha 21164PC";
- }
- else if (Family == 53)
- {
- Str_Family = "Alpha 21164a";
- }
- else if (Family == 54)
- {
- Str_Family = "Alpha 21264";
- }
- else if (Family == 55)
- {
- Str_Family = "Alpha 21364";
- }
- else if (Family == 64)
- {
- Str_Family = "MIPS Family";
- }
- else if (Family == 65)
- {
- Str_Family = "MIPS R4000";
- }
- else if (Family == 66)
- {
- Str_Family = "MIPS R4200";
- }
- else if (Family == 67)
- {
- Str_Family = "MIPS R4400";
- }
- else if (Family == 68)
- {
- Str_Family = "MIPS R4600";
- }
- else if (Family == 69)
- {
- Str_Family = "MIPS R10000";
- }
- else if (Family == 80)
- {
- Str_Family = "SPARC Family";
- }
- else if (Family == 81)
- {
- Str_Family = "SuperSPARC";
- }
- else if (Family == 82)
- {
- Str_Family = "microSPARC II";
- }
- else if (Family == 83)
- {
- Str_Family = "microSPARC IIep";
- }
- else if (Family == 84)
- {
- Str_Family = "UltraSPARC";
- }
- else if (Family == 85)
- {
- Str_Family = "UltraSPARC II";
- }
- else if (Family == 86)
- {
- Str_Family = "UltraSPARC IIi";
- }
- else if (Family == 87)
- {
- Str_Family = "UltraSPARC III";
- }
- else if (Family == 88)
- {
- Str_Family = "UltraSPARC IIIi";
- }
- else if (Family == 96)
- {
- Str_Family = "68040";
- }
- else if (Family == 97)
- {
- Str_Family = "68xxx Family";
- }
- else if (Family == 98)
- {
- Str_Family = "68000";
- }
- else if (Family == 99)
- {
- Str_Family = "68010";
- }
- else if (Family == 100)
- {
- Str_Family = "68020";
- }
- else if (Family == 101)
- {
- Str_Family = "68030";
- }
- else if (Family == 112)
- {
- Str_Family = "Hobbit Family";
- }
- else if (Family == 120)
- {
- Str_Family = "Crusoe™ TM5000 Family";
- }
- else if (Family == 121)
- {
- Str_Family = "Crusoe™ TM3000 Family";
- }
- else if (Family == 122)
- {
- Str_Family = "Efficeon™ TM8000 Family";
- }
- else if (Family == 128)
- {
- Str_Family = "Weitek";
- }
- else if (Family == 130)
- {
- Str_Family = "Itanium™ Processor";
- }
- else if (Family == 131)
- {
- Str_Family = "AMD Athlon™ 64 Processor Family";
- }
- else if (Family == 132)
- {
- Str_Family = "AMD Opteron™ Processor Family";
- }
- else if (Family == 144)
- {
- Str_Family = "PA-RISC Family";
- }
- else if (Family == 145)
- {
- Str_Family = "PA-RISC 8500";
- }
- else if (Family == 146)
- {
- Str_Family = "PA-RISC 8000";
- }
- else if (Family == 147)
- {
- Str_Family = "PA-RISC 7300LC";
- }
- else if (Family == 148)
- {
- Str_Family = "PA-RISC 7200";
- }
- else if (Family == 149)
- {
- Str_Family = "PA-RISC 7100LC";
- }
- else if (Family == 150)
- {
- Str_Family = "PA-RISC 7100";
- }
- else if (Family == 160)
- {
- Str_Family = "V30 Family";
- }
- else if (Family == 176)
- {
- Str_Family = "Pentium III Xeon™ Processor";
- }
- else if (Family == 177)
- {
- Str_Family = "Pentium III Processor with Intel SpeedStep™ Technology";
- }
- else if (Family == 178)
- {
- Str_Family = "Pentium 4";
- }
- else if (Family == 179)
- {
- Str_Family = "Intel Xeon™";
- }
- else if (Family == 180)
- {
- Str_Family = "AS400 Family";
- }
- else if (Family == 181)
- {
- Str_Family = "Intel Xeon™ Processor MP";
- }
- else if (Family == 182)
- {
- Str_Family = "AMD Athlon™ XP Family";
- }
- else if (Family == 183)
- {
- Str_Family = "AMD Athlon™ MP Family";
- }
- else if (Family == 184)
- {
- Str_Family = "Intel Itanium 2";
- }
- else if (Family == 185)
- {
- Str_Family = "Intel Pentium M Processor";
- }
- else if (Family == 190)
- {
- Str_Family = "K7";
- }
- else if (Family == 200)
- {
- Str_Family = "IBM390 Family";
- }
- else if (Family == 201)
- {
- Str_Family = "G4";
- }
- else if (Family == 202)
- {
- Str_Family = "G5";
- }
- else if (Family == 203)
- {
- Str_Family = "G6";
- }
- else if (Family == 204)
- {
- Str_Family = "z/Architecture Base";
- }
- else if (Family == 250)
- {
- Str_Family = "i860";
- }
- else if (Family == 251)
- {
- Str_Family = "i960";
- }
- else if (Family == 260)
- {
- Str_Family = "SH-3";
- }
- else if (Family == 261)
- {
- Str_Family = "SH-4";
- }
- else if (Family == 280)
- {
- Str_Family = "ARM";
- }
- else if (Family == 281)
- {
- Str_Family = "StrongARM";
- }
- else if (Family == 300)
- {
- Str_Family = "6x86";
- }
- else if (Family == 301)
- {
- Str_Family = "MediaGX";
- }
- else if (Family == 302)
- {
- Str_Family = "MII";
- }
- else if (Family == 320)
- {
- Str_Family = "WinChip";
- }
- else if (Family == 350)
- {
- Str_Family = "DSP";
- }
- else if (Family == 500)
- {
- Str_Family = "Video Processor";
- }
- #endregion
- #region ProcessorType String
- if (ProcessorType == 1)
- {
- Str_ProcessorType = "Other";
- }
- else if (ProcessorType == 2)
- {
- Str_ProcessorType = "Unknown";
- }
- else if (ProcessorType == 3)
- {
- Str_ProcessorType = "Central Processor";
- }
- else if (ProcessorType == 4)
- {
- Str_ProcessorType = "Math Processor";
- }
- else if (ProcessorType == 5)
- {
- Str_ProcessorType = "DSP Processor";
- }
- else if (ProcessorType == 6)
- {
- Str_ProcessorType = "Video Processor";
- }
- #endregion
- #region StatusInfo String
- if (StatusInfo == 1)
- {
- Str_StatusInfo = "Other";
- }
- else if (StatusInfo == 2)
- {
- Str_StatusInfo = "Unknown";
- }
- else if (StatusInfo == 3)
- {
- Str_StatusInfo = "Enabled";
- }
- else if (StatusInfo == 4)
- {
- Str_StatusInfo = "Disabled";
- }
- else if (StatusInfo == 5)
- {
- Str_StatusInfo = "Not Applicable";
- }
- #endregion
- #region UpgradeMethod String
- if (UpgradeMethod == 1)
- {
- Str_UpgradeMethod = "Other";
- }
- else if (UpgradeMethod == 2)
- {
- Str_UpgradeMethod = "Unknown";
- }
- else if (UpgradeMethod == 3)
- {
- Str_UpgradeMethod = "Daughter Board";
- }
- else if (UpgradeMethod == 4)
- {
- Str_UpgradeMethod = "ZIF Socket";
- }
- else if (UpgradeMethod == 5)
- {
- Str_UpgradeMethod = "Replacement or Piggy Back";
- }
- else if (UpgradeMethod == 6)
- {
- Str_UpgradeMethod = "None";
- }
- else if (UpgradeMethod == 7)
- {
- Str_UpgradeMethod = "LIF Socket";
- }
- else if (UpgradeMethod == 8)
- {
- Str_UpgradeMethod = "Slot 1";
- }
- else if (UpgradeMethod == 9)
- {
- Str_UpgradeMethod = "Slot 2";
- }
- else if (UpgradeMethod == 10)
- {
- Str_UpgradeMethod = "370 Pin Socket";
- }
- else if (UpgradeMethod == 11)
- {
- Str_UpgradeMethod = "Slot A";
- }
- else if (UpgradeMethod == 12)
- {
- Str_UpgradeMethod = "Slot M";
- }
- else if (UpgradeMethod == 13)
- {
- Str_UpgradeMethod = "Socket 423";
- }
- else if (UpgradeMethod == 14)
- {
- Str_UpgradeMethod = "Socket A (Socket 462)";
- }
- else if (UpgradeMethod == 15)
- {
- Str_UpgradeMethod = "Socket 478";
- }
- else if (UpgradeMethod == 16)
- {
- Str_UpgradeMethod = "Socket 754";
- }
- else if (UpgradeMethod == 17)
- {
- Str_UpgradeMethod = "Socket 940";
- }
- else if (UpgradeMethod == 18)
- {
- Str_UpgradeMethod = "Socket 939";
- }
- #endregion
- #region VoltageCaps String
- if (VoltageCaps == 1)
- {
- Str_VoltageCaps = "5 volts";
- }
- else if (VoltageCaps == 2)
- {
- Str_VoltageCaps = "3.3 volts";
- }
- else if (VoltageCaps == 4)
- {
- Str_VoltageCaps = "2.9 volts";
- }
- #endregion
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment