[][src]Struct win_mem::process::Process

pub struct Process { /* fields omitted */ }

Represents a system process, posses a PID, name and an open HANDLE

Implementations

impl Process[src]

pub fn find(name: &str) -> WinResult<Self>[src]

Find a Process from it's executable's name [Reference(s)]: https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-process32firstw https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-process32nextw https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/ns-tlhelp32-processentry32w

pub fn find_module(&self, name: &str) -> WinResult<Module>[src]

Find a process's module (dll) by it's name [Reference(s)]: https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-module32firstw https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-module32nextw https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/ns-tlhelp32-moduleentry32w

pub fn write_mem<T>(&self, buffer: &T, address: DWORD) -> WinResult<()>[src]

Write to a process's memory, not relative to module offset [Reference]: https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-writeprocessmemory

pub fn write_mem_relative<T>(
    &self,
    buffer: &T,
    module_name: &str,
    address: DWORD
) -> WinResult<()>
[src]

Write to a process's memory relative to the offset of a module

pub fn read_mem<T>(&self, address: DWORD) -> WinResult<T>[src]

Read a process's memory, not relative to module offset [Reference]: https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-readprocessmemory

pub fn read_mem_relative<T>(
    &self,
    module_name: &str,
    address: DWORD
) -> WinResult<T>
[src]

Read a process's memory address relative to the offset of a module

pub fn name(&self) -> &str[src]

pub fn pid(&self) -> DWORD[src]

pub fn handle(&self) -> HANDLE[src]

Trait Implementations

impl Drop for Process[src]

Close Process HANDLE when Process goes out of scope or the program exits/panics

Auto Trait Implementations

impl RefUnwindSafe for Process

impl !Send for Process

impl !Sync for Process

impl Unpin for Process

impl UnwindSafe for Process

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.