protected static interface VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary extends StdCallLibrary
StdCallLibrary.StdCallCallbackLibrary.HandlerFUNCTION_MAPPER, STDCALL_CONVENTIONOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER| Modifier and Type | Method and Description |
|---|---|
WinNT.HANDLE |
CreateRemoteThread(WinNT.HANDLE process,
WinBase.SECURITY_ATTRIBUTES securityAttributes,
int stackSize,
Pointer code,
Pointer argument,
WinDef.DWORD creationFlags,
Pointer threadId)
An alternative implementation of
Kernel32.CreateRemoteThread(WinNT.HANDLE, WinBase.SECURITY_ATTRIBUTES, int, WinBase.FOREIGN_THREAD_START_ROUTINE, Pointer, WinDef.DWORD, Pointer)
that uses a pointer as the code argument rather then a structure to avoid accessing foreign memory. |
boolean |
GetExitCodeThread(WinNT.HANDLE thread,
IntByReference exitCode)
Receives the exit code of a given thread.
|
Pointer |
VirtualAllocEx(WinNT.HANDLE process,
Pointer address,
int size,
int allocationType,
int protect)
Changes the state of memory in a given process.
|
boolean |
VirtualFreeEx(WinNT.HANDLE process,
Pointer address,
int size,
int freeType)
Frees memory in the given process.
|
Pointer VirtualAllocEx(WinNT.HANDLE process, Pointer address, int size, int allocationType, int protect)
process - The process in which to change the memory.address - The address of the memory to allocate.size - The size of the allocated region.allocationType - The allocation type.protect - The memory protection.boolean VirtualFreeEx(WinNT.HANDLE process, Pointer address, int size, int freeType)
process - The process in which to change the memory.address - The address of the memory to free.size - The size of the freed region.freeType - The freeing type.true if the operation succeeded.@MaybeNull WinNT.HANDLE CreateRemoteThread(WinNT.HANDLE process, @MaybeNull WinBase.SECURITY_ATTRIBUTES securityAttributes, int stackSize, Pointer code, Pointer argument, @MaybeNull WinDef.DWORD creationFlags, @MaybeNull Pointer threadId)
Kernel32.CreateRemoteThread(WinNT.HANDLE, WinBase.SECURITY_ATTRIBUTES, int, WinBase.FOREIGN_THREAD_START_ROUTINE, Pointer, WinDef.DWORD, Pointer)
that uses a pointer as the code argument rather then a structure to avoid accessing foreign memory.process - A handle of the target process.securityAttributes - The security attributes to use or null if no attributes are provided.stackSize - The stack size or 0 for using the system default.code - A pointer to the code to execute.argument - A pointer to the argument to provide to the code being executed.creationFlags - The creation flags or null if no flags are set.threadId - A pointer to the thread id or null if no thread reference is set.null if the creation failed.boolean GetExitCodeThread(WinNT.HANDLE thread, IntByReference exitCode)
thread - A handle to the targeted thread.exitCode - A reference to the exit code value.true if the exit code retrieval succeeded.Copyright © 2014–2021. All rights reserved.