Class IWbemClassObjectFFM
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.windows.com.IUnknownFFM
oshi.ffm.windows.com.ComObjectFFM
oshi.ffm.windows.com.IWbemClassObjectFFM
FFM bindings for the IWbemClassObject COM interface.
IWbemClassObject represents a single WMI object (row) in a query result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of a Get() call containing the VARIANT and CIM type. -
Field Summary
Fields 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 TypeMethodDescriptionget(MemorySegment pObject, String propertyName, Arena arena) Gets a property value from a WMI object.static booleangetBoolean(MemorySegment pObject, String propertyName, Arena arena) Gets a boolean property value from a WMI object (VT_BOOL).static intgetInt(MemorySegment pObject, String propertyName, Arena arena) Gets an integer property value from a WMI object (VT_I4, VT_I2, VT_UI4, VT_UI2).static longgetLong(MemorySegment pObject, String propertyName, Arena arena) Gets a long property value from a WMI object (VT_I8, VT_UI8, or BSTR for UINT64).static StringgetString(MemorySegment pObject, String propertyName, Arena arena) Gets a string property value from a WMI object.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
-
get
public static IWbemClassObjectFFM.GetResult get(MemorySegment pObject, String propertyName, Arena arena) Gets a property value from a WMI object.- Parameters:
pObject- the IWbemClassObject pointerpropertyName- the property namearena- the arena for memory allocation- Returns:
- the get result containing HRESULT, VARIANT, and CIM type
-
getString
Gets a string property value from a WMI object.- Parameters:
pObject- the IWbemClassObject pointerpropertyName- the property namearena- the arena for memory allocation- Returns:
- the string value, or empty string if failed or null
-
getInt
Gets an integer property value from a WMI object (VT_I4, VT_I2, VT_UI4, VT_UI2).- Parameters:
pObject- the IWbemClassObject pointerpropertyName- the property namearena- the arena for memory allocation- Returns:
- the integer value, or 0 if failed or null
-
getLong
Gets a long property value from a WMI object (VT_I8, VT_UI8, or BSTR for UINT64).- Parameters:
pObject- the IWbemClassObject pointerpropertyName- the property namearena- the arena for memory allocation- Returns:
- the long value, or 0 if failed or null
-
getBoolean
Gets a boolean property value from a WMI object (VT_BOOL).- Parameters:
pObject- the IWbemClassObject pointerpropertyName- the property namearena- the arena for memory allocation- Returns:
- the boolean value, or false if failed or null
-