Package de.darkatra.injector
Object ProcessUtils
-
- All Implemented Interfaces:
@PublicApi() public class ProcessUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static ProcessUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final WinNT.HANDLEopenHandleToProcess(Long processId)final WinDef.HMODULEgetRemoteModuleHandle(WinNT.HANDLE processHandle, String name, Logger logger)final IntegerreadInt(WinNT.HANDLE processHandle, Pointer address)Reads a 32-bit integer from the given address. final ShortreadShort(WinNT.HANDLE processHandle, Pointer address)Reads a 16-bit integer from the given address. final <T extends Any> TreadProcessMemory(WinNT.HANDLE processHandle, Pointer address, Integer bytesToRead, Function1<Memory, T> mappingFunction)-
-
Method Detail
-
openHandleToProcess
@PublicApi() final WinNT.HANDLE openHandleToProcess(Long processId)
-
getRemoteModuleHandle
@PublicApi() final WinDef.HMODULE getRemoteModuleHandle(WinNT.HANDLE processHandle, String name, Logger logger)
-
readInt
@PublicApi() final Integer readInt(WinNT.HANDLE processHandle, Pointer address)
Reads a 32-bit integer from the given address.
-
readShort
@PublicApi() final Short readShort(WinNT.HANDLE processHandle, Pointer address)
Reads a 16-bit integer from the given address.
-
readProcessMemory
@PublicApi() final <T extends Any> T readProcessMemory(WinNT.HANDLE processHandle, Pointer address, Integer bytesToRead, Function1<Memory, T> mappingFunction)
-
-
-
-