pub struct CONTEXT_X86 {
Show 25 fields pub context_flags: u32, pub dr0: u32, pub dr1: u32, pub dr2: u32, pub dr3: u32, pub dr6: u32, pub dr7: u32, pub float_save: FLOATING_SAVE_AREA_X86, pub gs: u32, pub fs: u32, pub es: u32, pub ds: u32, pub edi: u32, pub esi: u32, pub ebx: u32, pub edx: u32, pub ecx: u32, pub eax: u32, pub ebp: u32, pub eip: u32, pub cs: u32, pub eflags: u32, pub esp: u32, pub ss: u32, pub extended_registers: [u8; 512],
}
Expand description

An x86 CPU context

This struct matches the definition of CONTEXT in WinNT.h for x86.

Fields

context_flags: u32dr0: u32dr1: u32dr2: u32dr3: u32dr6: u32dr7: u32float_save: FLOATING_SAVE_AREA_X86gs: u32fs: u32es: u32ds: u32edi: u32esi: u32ebx: u32edx: u32ecx: u32eax: u32ebp: u32eip: u32cs: u32eflags: u32esp: u32ss: u32extended_registers: [u8; 512]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The word size of general-purpose registers in the context.

General purpose registers in this context type.

Get a register value regardless of whether it is valid.

Set a register value, if that register name it exists. Read more

Gets the name of the stack pointer register (for use with get_register/set_register).

Gets the name of the instruction pointer register (for use with get_register/set_register).

Gets whether the given register is valid Read more

Get a register value if it is valid. Read more

Gets a static version of the given register name, if possible. Read more

Return a String containing the value of reg formatted to its natural width.

An iterator over all registers in this context. Read more

An iterator over valid registers in this context. Read more

Formats the value using the given formatter. Read more

Return CONTEXT_X86 { context_flags: Default::default(), dr0: Default::default(), dr1: Default::default(), dr2: Default::default(), dr3: Default::default(), dr6: Default::default(), dr7: Default::default(), float_save: Default::default(), gs: Default::default(), fs: Default::default(), es: Default::default(), ds: Default::default(), edi: Default::default(), esi: Default::default(), ebx: Default::default(), edx: Default::default(), ecx: Default::default(), eax: Default::default(), ebp: Default::default(), eip: Default::default(), cs: Default::default(), eflags: Default::default(), esp: Default::default(), ss: Default::default(), extended_registers: [0 ; 512] }

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.