Getting Hardware Information Using Visual Basic.NET and VBScript - The class Win32_Processor in detail
(Page 3 of 4 )
In the previous section, plenty of properties are available to retrieve information about processors. But I included only the most important properties from the existing WMI class (Win32_Processor); had I done otherwise, it would have made the program too long.
The above program would list the information related to the properties of availability, Caption, CPUStatus, CurrentClockSpeed, DeviceID, Level, Name, ProcessorID, ProcessorType and SystemName. By using these properties, you can already retrieve plenty of information about the processors. You can further extend the above program with several other properties available in the “Win32_Processor” class. You can even refer to MSDN online for further properties.
Let us go through these properties to understand them better.
Availability: This property gives you the status of the processor's “availability.” The value, along with the description (I've included the most important ones) could be something like the following:
Value | Meaning |
1 0x1 | Other |
2 0x2 | Unknown |
3 0x3 | Running/Full Power |
4 0x4 | Warning |
5 0x5 | In Test |
6 0x6 | Not Applicable |
7 0x7 | Power Off |
8 0x8 | Off Line |
9 0x9 | Off Duty |
10 0xA | Degraded |
11 0xB | Not Installed |
12 0xC | Install Error |
Caption: This property gives a short description of an object.
CPUStatus: This property gives you the current status of the processor. The status changes indicate processor usage, not the physical condition of the processor. The following table shows you the status of the processor:
Value | Meaning |
0 | Unknown |
1 | CPU Enabled |
2 | CPU Disabled by User via BIOS Setup |
3 | CPU Disabled by User via BIOS (POST Error) |
4 | CPU is Idle |
5 | Reserved |
6 | Reserved |
7 | Other |
CurrentClockSpeed: This property shows you the current speed of the processor in MHz.
DeviceID: This property gives you the unique identifier of a processor on the system.
Level: This property gives you a definition of the processor type. The value depends on the architecture of the processor.
Name: This property explains the label by which the object is known. When this property is a subclass, it can be overridden to be a key property.
ProcessorID: This property provides us processor information that describes the processor's features.
ProcessorType: This property gives you the type of processor available in your system.
Value | Meaning |
1 | Other |
2 | Unknown |
3 | Central Processor |
4 | Math Processor |
5 | DSP Processor |
6 | Video Processor |
System Name: This property gives you the name of your system (or the one to which you're connected).
Next: Digging further into the motherboard's details >>
More Visual Basic.NET Articles
More By Jagadish Chaterjee