Interface WmiResult<T extends Enum<T>>

Type Parameters:
T - the enum type representing the queried properties

public interface WmiResult<T extends Enum<T>>
Common interface for WMI query results, abstracting JNA and FFM implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getCIMType(T property)
    Gets the CIM type of a property.
    int
    Gets the number of results in this result set.
    getValue(T property, int index)
    Gets the value of a property at the given index.
    int
    getVtType(T property)
    Gets the variant type of a property.
  • Method Details

    • getResultCount

      int getResultCount()
      Gets the number of results in this result set.
      Returns:
      the result count
    • getValue

      Object getValue(T property, int index)
      Gets the value of a property at the given index.
      Parameters:
      property - the property enum constant
      index - the row index
      Returns:
      the value
    • getVtType

      int getVtType(T property)
      Gets the variant type of a property.
      Parameters:
      property - the property enum constant
      Returns:
      the VT type constant
    • getCIMType

      int getCIMType(T property)
      Gets the CIM type of a property.
      Parameters:
      property - the property enum constant
      Returns:
      the CIM type constant