Class IWbemLocatorFFM


public final class IWbemLocatorFFM extends ComObjectFFM
FFM bindings for the IWbemLocator COM interface.

IWbemLocator is used to obtain the initial namespace pointer to IWbemServices for WMI on a particular host computer.

  • Method Details

    • create

      public static Optional<MemorySegment> create(Arena arena)
      Creates an IWbemLocator instance.
      Parameters:
      arena - the arena for memory allocation
      Returns:
      the IWbemLocator pointer, or empty if failed
    • connectServer

      public static Optional<MemorySegment> connectServer(MemorySegment pLocator, String namespace, Arena arena)
      Connects to the specified WMI namespace.
      Parameters:
      pLocator - the IWbemLocator pointer
      namespace - the WMI namespace (e.g., "ROOT\\CIMV2")
      arena - the arena for memory allocation
      Returns:
      the IWbemServices pointer, or empty if failed