Class IWbemServicesFFM


public final class IWbemServicesFFM extends ComObjectFFM
FFM bindings for the IWbemServices COM interface.

IWbemServices is used to execute WMI queries and access WMI objects.

  • Field Details

  • Method Details

    • execQuery

      public static Optional<MemorySegment> execQuery(MemorySegment pServices, String query, int flags, Arena arena)
      Executes a WQL query.
      Parameters:
      pServices - the IWbemServices pointer
      query - the WQL query string (e.g., "SELECT * FROM Win32_LogicalDisk")
      flags - query flags (e.g., WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY)
      arena - the arena for memory allocation
      Returns:
      the IEnumWbemClassObject enumerator, or empty if failed
    • execQuery

      public static Optional<MemorySegment> execQuery(MemorySegment pServices, String query, Arena arena)
      Executes a WQL query with default flags (FORWARD_ONLY | RETURN_IMMEDIATELY).
      Parameters:
      pServices - the IWbemServices pointer
      query - the WQL query string
      arena - the arena for memory allocation
      Returns:
      the IEnumWbemClassObject enumerator, or empty if failed