Class Advapi32FFM
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.windows.WindowsForeignFunctions
oshi.ffm.windows.Advapi32FFM
-
Field Summary
Fields 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 booleanAdjustTokenPrivileges(MemorySegment hToken, MemorySegment tkp) static booleanCloseEventLog(MemorySegment hEventLog) static booleanGetTokenInformation(MemorySegment hToken, int tokenInfoClass, MemorySegment tokenInfo, int tokenInfoLength, MemorySegment returnLength) static booleanLookupPrivilegeValue(String name, MemorySegment luid, Arena arena) static Optional<MemorySegment> OpenEventLog(Arena arena, String source) static Optional<MemorySegment> OpenEventLog(MemorySegment serverName, MemorySegment sourceName) static booleanOpenProcessToken(MemorySegment process, int desiredAccess, MemorySegment hTokenOut) static booleanReadEventLog(MemorySegment hEventLog, int flags, MemorySegment buffer, int bufSize, MemorySegment bytesRead, MemorySegment minBytesNeeded) static intRegCloseKey(MemorySegment hKey) static intRegEnumKeyEx(MemorySegment hKey, int dwIndex, MemorySegment lpName, MemorySegment lpcchName, MemorySegment lpReserved, MemorySegment lpClass, MemorySegment lpcchClass, MemorySegment lpftLastWriteTime) static intRegOpenKeyEx(MemorySegment hKey, MemorySegment subKey, int options, int samDesired, MemorySegment phkResult) static intRegQueryInfoKey(MemorySegment hKey, MemorySegment lpClass, MemorySegment lpcchClass, MemorySegment lpReserved, MemorySegment lpcSubKeys, MemorySegment lpcMaxSubKeyLen, MemorySegment lpcMaxClassLen, MemorySegment lpcValues, MemorySegment lpcMaxValueNameLen, MemorySegment lpcMaxValueLen, MemorySegment lpcbSecurityDescriptor, MemorySegment lpftLastWriteTime) static intRegQueryValueEx(MemorySegment hKey, MemorySegment lpValueName, int reserved, MemorySegment lpType, MemorySegment lpData, MemorySegment lpcbData) Methods inherited from class WindowsForeignFunctions
checkSuccess, isSuccess, readAnsiString, readWideString, setupTokenPrivileges, toWideStringMethods inherited from class ForeignFunctions
downcall, getByteArrayFromNativePointer, getErrno, getStringFromNativePointer, getStructFromNativePointer, lib, libraryLookup
-
Constructor Details
-
Advapi32FFM
public Advapi32FFM()
-
-
Method Details
-
AdjustTokenPrivileges
public static boolean AdjustTokenPrivileges(MemorySegment hToken, MemorySegment tkp) throws Throwable - Throws:
Throwable
-
CloseEventLog
- Throws:
Throwable
-
GetTokenInformation
public static boolean GetTokenInformation(MemorySegment hToken, int tokenInfoClass, MemorySegment tokenInfo, int tokenInfoLength, MemorySegment returnLength) throws Throwable - Throws:
Throwable
-
LookupPrivilegeValue
public static boolean LookupPrivilegeValue(String name, MemorySegment luid, Arena arena) throws Throwable - Throws:
Throwable
-
OpenEventLog
public static Optional<MemorySegment> OpenEventLog(MemorySegment serverName, MemorySegment sourceName) throws Throwable - Throws:
Throwable
-
OpenEventLog
-
OpenProcessToken
public static boolean OpenProcessToken(MemorySegment process, int desiredAccess, MemorySegment hTokenOut) throws Throwable - Throws:
Throwable
-
ReadEventLog
public static boolean ReadEventLog(MemorySegment hEventLog, int flags, MemorySegment buffer, int bufSize, MemorySegment bytesRead, MemorySegment minBytesNeeded) throws Throwable - Throws:
Throwable
-
RegCloseKey
- Throws:
Throwable
-
RegEnumKeyEx
public static int RegEnumKeyEx(MemorySegment hKey, int dwIndex, MemorySegment lpName, MemorySegment lpcchName, MemorySegment lpReserved, MemorySegment lpClass, MemorySegment lpcchClass, MemorySegment lpftLastWriteTime) throws Throwable - Throws:
Throwable
-
RegOpenKeyEx
public static int RegOpenKeyEx(MemorySegment hKey, MemorySegment subKey, int options, int samDesired, MemorySegment phkResult) throws Throwable - Throws:
Throwable
-
RegQueryInfoKey
public static int RegQueryInfoKey(MemorySegment hKey, MemorySegment lpClass, MemorySegment lpcchClass, MemorySegment lpReserved, MemorySegment lpcSubKeys, MemorySegment lpcMaxSubKeyLen, MemorySegment lpcMaxClassLen, MemorySegment lpcValues, MemorySegment lpcMaxValueNameLen, MemorySegment lpcMaxValueLen, MemorySegment lpcbSecurityDescriptor, MemorySegment lpftLastWriteTime) throws Throwable - Throws:
Throwable
-
RegQueryValueEx
public static int RegQueryValueEx(MemorySegment hKey, MemorySegment lpValueName, int reserved, MemorySegment lpType, MemorySegment lpData, MemorySegment lpcbData) throws Throwable - Throws:
Throwable
-