protected static interface VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary
extends com.sun.jna.win32.StdCallLibrary
Modifier and Type | Method and Description |
---|---|
com.sun.jna.platform.win32.WinNT.HANDLE |
CreateRemoteThread(com.sun.jna.platform.win32.WinNT.HANDLE process,
com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes,
int stackSize,
com.sun.jna.Pointer code,
com.sun.jna.Pointer argument,
com.sun.jna.platform.win32.WinDef.DWORD creationFlags,
com.sun.jna.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(com.sun.jna.platform.win32.WinNT.HANDLE thread,
com.sun.jna.ptr.IntByReference exitCode)
Receives the exit code of a given thread.
|
com.sun.jna.Pointer |
VirtualAllocEx(com.sun.jna.platform.win32.WinNT.HANDLE process,
com.sun.jna.Pointer address,
int size,
int allocationType,
int protect)
Changes the state of memory in a given process.
|
boolean |
VirtualFreeEx(com.sun.jna.platform.win32.WinNT.HANDLE process,
com.sun.jna.Pointer address,
int size,
int freeType)
Frees memory in the given process.
|
com.sun.jna.Pointer VirtualAllocEx(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.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(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.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.com.sun.jna.platform.win32.WinNT.HANDLE CreateRemoteThread(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, int stackSize, com.sun.jna.Pointer code, com.sun.jna.Pointer argument, com.sun.jna.platform.win32.WinDef.DWORD creationFlags, com.sun.jna.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(com.sun.jna.platform.win32.WinNT.HANDLE thread, com.sun.jna.ptr.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–2020. All rights reserved.