Trait benfred_read_process_memory::TryIntoProcessHandle[][src]

pub trait TryIntoProcessHandle {
    fn try_into_process_handle(&self) -> Result<ProcessHandle>;
}

Attempt to get a process handle for a running process.

This operation is not guaranteed to succeed. Specifically, on Windows OpenProcess may fail, and on OS X task_for_pid will generally fail unless run as root, and even then it may fail when called on certain programs.

This should be dropped in favor of TryInto when that stabilizes: https://github.com/rust-lang/rust/issues/33417

Required Methods

Attempt to get a ProcessHandle from self.

Implementations on Foreign Types

impl TryIntoProcessHandle for DWORD
[src]

A Pid can be turned into a ProcessHandle with OpenProcess.

impl TryIntoProcessHandle for Child
[src]

A std::process::Child has a HANDLE from calling CreateProcess.

Implementors