Class IWbemLocatorFFM
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.windows.com.IUnknownFFM
oshi.ffm.windows.com.ComObjectFFM
oshi.ffm.windows.com.IWbemLocatorFFM
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.
-
Field Summary
Fields inherited from class ComObjectFFM
PTR_SIZEFields inherited from class ForeignFunctions
CAPTURE_CALL_STATE, CAPTURED_STATE_LAYOUT, ERRNO_HANDLE, LIBRARY_ARENA, LINKER, SYMBOL_LOOKUP -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<MemorySegment> connectServer(MemorySegment pLocator, String namespace, Arena arena) Connects to the specified WMI namespace.static Optional<MemorySegment> Creates an IWbemLocator instance.Methods inherited from class ComObjectFFM
createDowncall, getVtable, getVtableFunctionMethods inherited from class IUnknownFFM
addRef, release, safeReleaseMethods inherited from class ForeignFunctions
downcall, getByteArrayFromNativePointer, getErrno, getStringFromNativePointer, getStructFromNativePointer, lib, libraryLookup
-
Method Details
-
create
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 pointernamespace- the WMI namespace (e.g., "ROOT\\CIMV2")arena- the arena for memory allocation- Returns:
- the IWbemServices pointer, or empty if failed
-