Class PdhFFM
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.windows.WindowsForeignFunctions
oshi.ffm.windows.PdhFFM
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutstatic final StructLayoutstatic final MemoryLayoutstatic final intstatic final intFields inherited from class ForeignFunctions
CAPTURE_CALL_STATE, CAPTURED_STATE_LAYOUT, ERRNO_HANDLE, LIBRARY_ARENA, LINKER, SYMBOL_LOOKUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intPdhAddEnglishCounter(MemorySegment query, MemorySegment counterPath, MemorySegment userData, MemorySegment counter) static intPdhCloseQuery(MemorySegment query) static intPdhCollectQueryData(MemorySegment query) static intPdhGetFormattedCounterArray(MemorySegment counter, int format, MemorySegment bufferSize, MemorySegment itemCount, MemorySegment buffer) static intPdhOpenQuery(MemorySegment dataSource, MemorySegment userData, MemorySegment query) Methods inherited from class WindowsForeignFunctions
checkSuccess, isSuccess, readAnsiString, readWideString, setupTokenPrivileges, toWideStringMethods inherited from class ForeignFunctions
downcall, getByteArrayFromNativePointer, getErrno, getStringFromNativePointer, getStructFromNativePointer, lib, libraryLookup
-
Field Details
-
PDH_FMT_LARGE
public static final int PDH_FMT_LARGE- See Also:
-
PDH_MORE_DATA
public static final int PDH_MORE_DATA- See Also:
-
PDH_FMT_COUNTERVALUE_UNION
-
PDH_FMT_COUNTERVALUE_LAYOUT
-
PDH_FMT_COUNTERVALUE_ITEM_LAYOUT
-
-
Constructor Details
-
PdhFFM
public PdhFFM()
-
-
Method Details
-
PdhOpenQuery
public static int PdhOpenQuery(MemorySegment dataSource, MemorySegment userData, MemorySegment query) throws Throwable - Throws:
Throwable
-
PdhAddEnglishCounter
public static int PdhAddEnglishCounter(MemorySegment query, MemorySegment counterPath, MemorySegment userData, MemorySegment counter) throws Throwable - Throws:
Throwable
-
PdhCollectQueryData
- Throws:
Throwable
-
PdhGetFormattedCounterArray
public static int PdhGetFormattedCounterArray(MemorySegment counter, int format, MemorySegment bufferSize, MemorySegment itemCount, MemorySegment buffer) throws Throwable - Throws:
Throwable
-
PdhCloseQuery
- Throws:
Throwable
-