1. Introduction
In WMI, you can obtain information about a disk drive by using the Win32_Processor object:
ManagementClass mc = new ManagementClass ("Win32_Processor");
Managementobjectcollection MOC = MC. GetInstances ();
foreach (ManagementObject mo in MOC)
{
PropertyInfo = mo. Properties[propertyname]. Value.tostring ();
}
2, Properties
The property information for the Win32_Processor object is as follows:
Addresswidth
Architecture
Availability
Caption
Configmanagererrorcode
Configmanageruserconfig
Cpustatus
CreationClassName
CurrentClockSpeed
Currentvoltage
DataWidth
Description
DeviceID
Errorcleared
ErrorDescription
Extclock
Family
InstallDate
L2cachesize
L2cachespeed
L3cachesize
L3cachespeed
LastErrorCode
Level
Loadpercentage
Manufacturer
MaxClockSpeed
Name
NumberOfCores
NumberOfLogicalProcessors
Otherfamilydescription
Pnpdeviceid
PowerManagementCapabilities
powermanagementsupported
Processorid
ProcessorType
Revision
Role
Socketdesignation
Status
StatusInfo
Stepping
Systemcreationclassname
SystemName
UniqueId
Upgrademethod
Version
Voltagecaps