Class IWbemClassObjectFFM


public final class IWbemClassObjectFFM extends ComObjectFFM
FFM bindings for the IWbemClassObject COM interface.

IWbemClassObject represents a single WMI object (row) in a query result.

  • Method Details

    • get

      public static IWbemClassObjectFFM.GetResult get(MemorySegment pObject, String propertyName, Arena arena)
      Gets a property value from a WMI object.
      Parameters:
      pObject - the IWbemClassObject pointer
      propertyName - the property name
      arena - the arena for memory allocation
      Returns:
      the get result containing HRESULT, VARIANT, and CIM type
    • getString

      public static String getString(MemorySegment pObject, String propertyName, Arena arena)
      Gets a string property value from a WMI object.
      Parameters:
      pObject - the IWbemClassObject pointer
      propertyName - the property name
      arena - the arena for memory allocation
      Returns:
      the string value, or empty string if failed or null
    • getInt

      public static int getInt(MemorySegment pObject, String propertyName, Arena arena)
      Gets an integer property value from a WMI object (VT_I4, VT_I2, VT_UI4, VT_UI2).
      Parameters:
      pObject - the IWbemClassObject pointer
      propertyName - the property name
      arena - the arena for memory allocation
      Returns:
      the integer value, or 0 if failed or null
    • getLong

      public static long getLong(MemorySegment pObject, String propertyName, Arena arena)
      Gets a long property value from a WMI object (VT_I8, VT_UI8, or BSTR for UINT64).
      Parameters:
      pObject - the IWbemClassObject pointer
      propertyName - the property name
      arena - the arena for memory allocation
      Returns:
      the long value, or 0 if failed or null
    • getBoolean

      public static boolean getBoolean(MemorySegment pObject, String propertyName, Arena arena)
      Gets a boolean property value from a WMI object (VT_BOOL).
      Parameters:
      pObject - the IWbemClassObject pointer
      propertyName - the property name
      arena - the arena for memory allocation
      Returns:
      the boolean value, or false if failed or null