[−][src]Struct win_mem::process::Process
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]
&self,
buffer: &T,
module_name: &str,
address: DWORD
) -> WinResult<()>
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]
&self,
module_name: &str,
address: DWORD
) -> WinResult<T>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,