[−][src]Struct vmread::WinContext
Context describing a particular VM instance
This structure provides interfaces to parse windows process information and to perform reads and writes to memory of the VM.
There is no new
implementation, use create_context
to retrieve an initialized context.
Fields
process_list: Vec<WinProcess>
kmod_list: Vec<WinDll>
Methods
impl WinContext
[src]
pub fn rwlist(&self) -> RWList
[src]
Get a read/write list for physical VM memory
If multiple RW operations are to be performed at the same time, it is more efficient to use RWList for the task
pub fn read<T>(self, address: u64) -> T
[src]
Read physical VM memory
Returns a value of type T
at a given VM's physical address
Arguments
address
- address to read the data from
pub fn write<T>(&self, address: u64, value: &T) -> &WinContext
[src]
Write physical VM memory
Write value
into a given VM's physical address
Arguments
address
- address to write the data tovalue
- reference to the value that is to be written
pub fn refresh_processes(&mut self) -> &mut Self
[src]
Refresh the process list
pub fn refresh_kmods(&mut self) -> &mut Self
[src]
Refresh the kernel module list
Remarks
The kernel modules are not loaded into all processes, and not all of them are loaded into the system process either.
Trait Implementations
impl Drop for WinContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for WinContext
impl !Send for WinContext
impl !Sync for WinContext
impl Unpin for WinContext
impl UnwindSafe for WinContext
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,
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.
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>,