pub struct PeImport {
pub iat_va: u64,
pub dll_name: String,
pub name: Option<String>,
pub ordinal: Option<u16>,
}Expand description
One entry from a PE file’s Import Address Table (IAT). Names
the imported symbol the loader will patch into iat_va at
run time. Either name or ordinal is set (an import is
either by-name or by-ordinal); rarely both, never neither.
Fields§
§iat_va: u64Run-time virtual address of the IAT slot — what the
loader writes the resolved function pointer into, and
what call dword ptr [iat_va] references in code.
dll_name: StringName of the DLL that provides the symbol (e.g. "KERNEL32.dll").
Empty when the import descriptor’s Name RVA didn’t
resolve to a readable string.
name: Option<String>Symbol name when the import is by-name.
ordinal: Option<u16>Ordinal when the import is by-ordinal. Common for some system DLLs (e.g. WS2_32 uses ordinals for many entries).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeImport
impl RefUnwindSafe for PeImport
impl Send for PeImport
impl Sync for PeImport
impl Unpin for PeImport
impl UnsafeUnpin for PeImport
impl UnwindSafe for PeImport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more