Class IWbemServicesFFM
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.windows.com.IUnknownFFM
oshi.ffm.windows.com.ComObjectFFM
oshi.ffm.windows.com.IWbemServicesFFM
FFM bindings for the IWbemServices COM interface.
IWbemServices is used to execute WMI queries and access WMI objects.
-
Field Summary
FieldsFields inherited from class ComObjectFFM
PTR_SIZEFields inherited from class ForeignFunctions
CAPTURE_CALL_STATE, CAPTURED_STATE_LAYOUT, ERRNO_HANDLE, LIBRARY_ARENA, LINKER, NATIVE_LONG_SIZE, NATIVE_POINTER_SIZE, NATIVE_SIZE_T_SIZE, SYMBOL_LOOKUP -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<MemorySegment> execQuery(MemorySegment pServices, String query, int flags, Arena arena) Executes a WQL query.static Optional<MemorySegment> execQuery(MemorySegment pServices, String query, Arena arena) Executes a WQL query with default flags (FORWARD_ONLY | RETURN_IMMEDIATELY).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
-
Field Details
-
WQL
-
-
Method Details
-
execQuery
public static Optional<MemorySegment> execQuery(MemorySegment pServices, String query, int flags, Arena arena) Executes a WQL query.- Parameters:
pServices- the IWbemServices pointerquery- 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
Executes a WQL query with default flags (FORWARD_ONLY | RETURN_IMMEDIATELY).- Parameters:
pServices- the IWbemServices pointerquery- the WQL query stringarena- the arena for memory allocation- Returns:
- the IEnumWbemClassObject enumerator, or empty if failed
-