Class Win32Processor

java.lang.Object
oshi.driver.windows.wmi.Win32Processor

@ThreadSafe public final class Win32Processor extends Object
Utility to query WMI class Win32_Processor
  • 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.