Class Advapi32FFM
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.windows.WindowsForeignFunctions
oshi.ffm.windows.Advapi32FFM
-
Field Summary
Fields inherited from class ForeignFunctions
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) Methods inherited from class WindowsForeignFunctions
isSuccess, setupTokenPrivileges, toWideStringMethods inherited from class ForeignFunctions
downcall, getByteArrayFromNativePointer, getStringFromNativePointer, getStructFromNativePointer, lib
-
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
-