java.lang.Object
oshi.driver.windows.wmi.Win32Processor
Utility to query WMI class
Win32_Processor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Processor bitness propertystatic enum
Processor ID propertystatic enum
Processor voltage properties. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.BitnessProperty>
Returns address width.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.ProcessorIdProperty>
Returns processor ID.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.VoltProperty>
Returns processor voltage.
-
Method Details
-
queryVoltage
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.VoltProperty> queryVoltage()Returns processor voltage.- Returns:
- Current voltage of the processor. If the eighth bit is set, bits 0-6 contain the voltage multiplied by 10. If the eighth bit is not set, then the bit setting in VoltageCaps represents the voltage value.
-
queryProcessorId
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.ProcessorIdProperty> queryProcessorId()Returns processor ID.- Returns:
- Processor information that describes the processor features. For an x86 class CPU, the field format depends on the processor support of the CPUID instruction. If the instruction is supported, the property contains 2 (two) DWORD formatted values. The first is an offset of 08h-0Bh, which is the EAX value that a CPUID instruction returns with input EAX set to 1. The second is an offset of 0Ch-0Fh, which is the EDX value that the instruction returns. Only the first two bytes of the property are significant and contain the contents of the DX register at CPU reset—all others are set to 0 (zero), and the contents are in DWORD format.
-
queryBitness
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.BitnessProperty> queryBitness()Returns address width.- Returns:
- On a 32-bit operating system, the value is 32 and on a 64-bit operating system it is 64.
-