pub type ProcessHandle = (HANDLE, Architecture);Expand description
A ProcessHandle is a variable type that allows for access to functions that can manipulate
other processes. On platforms other than Linux, this is typically a different type than
Pid, and thus it is a distinct type here.
On Windows a ProcessHandle is a HANDLE.
Trait Implementations§
Source§impl CopyAddress for ProcessHandle
Use ReadProcessMemory to read memory from another process on Windows.
impl CopyAddress for ProcessHandle
Use ReadProcessMemory to read memory from another process on Windows.
Source§fn get_pointer_width(&self) -> Architecture
fn get_pointer_width(&self) -> Architecture
Get the the pointer width of the underlying process.
This is required for
get_offset to work. Read moreSource§impl ProcessHandleExt for ProcessHandle
impl ProcessHandleExt for ProcessHandle
Source§fn check_handle(&self) -> bool
fn check_handle(&self) -> bool
Source§fn null_type() -> ProcessHandle
fn null_type() -> ProcessHandle
Return the null equivalent of a
ProcessHandle.Source§fn set_arch(self, arch: Architecture) -> Self
fn set_arch(self, arch: Architecture) -> Self
Set this handle to use some architecture
Source§impl PutAddress for ProcessHandle
Use WriteProcessMemory to write memory from another process on Windows.
impl PutAddress for ProcessHandle
Use WriteProcessMemory to write memory from another process on Windows.
Source§impl TryIntoProcessHandle for ProcessHandle
impl TryIntoProcessHandle for ProcessHandle
Source§fn try_into_process_handle(&self) -> Result<ProcessHandle>
fn try_into_process_handle(&self) -> Result<ProcessHandle>
Attempt to turn a type into a
ProcessHandle. Whilst Linux provides the same type for
Pids and ProcessHandles, Windows and macOS do not. As such, you need to ensure that
try_into_process_handle is called on all Pids to ensure cross-platform capabilities. Read more