[][src]Struct ilhook::x86::Registers

#[repr(C)]
pub struct Registers {
    pub eflags: u32,
    pub edi: u32,
    pub esi: u32,
    pub ebp: u32,
    pub esp: u32,
    pub ebx: u32,
    pub edx: u32,
    pub ecx: u32,
    pub eax: u32,
}

The common registers.

Fields

eflags: u32

The flags register.

edi: u32

The edi register.

esi: u32

The esi register.

ebp: u32

The ebp register.

esp: u32

The esp register.

ebx: u32

The ebx register.

edx: u32

The edx register.

ecx: u32

The ecx register.

eax: u32

The eax register.

Methods

impl Registers[src]

pub unsafe fn get_arg(&self, cnt: usize) -> u32[src]

Get the value by the index from register esp.

Arguments

  • cnt - The index of the arguments.

Safety

Process may crash if register esp does not point to a valid stack.

Trait Implementations

impl Debug for Registers[src]

Auto Trait Implementations

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.