Struct Import
pub struct Import<'a> { /* private fields */ }Implementations§
§impl Import<'_>
impl Import<'_>
pub fn entries(&self) -> ImportEntries<'_> ⓘ
pub fn entries(&self) -> ImportEntries<'_> ⓘ
Iterator over the ImportEntry
pub fn forwarder_chain(&self) -> u32
pub fn forwarder_chain(&self) -> u32
The index of the first forwarder reference
pub fn timedatestamp(&self) -> u32
pub fn timedatestamp(&self) -> u32
The stamp that is set to zero until the image is bound. After the image is bound, this field is set to the time/data stamp of the DLL
pub fn import_address_table_rva(&self) -> u32
pub fn import_address_table_rva(&self) -> u32
The RVA of the import address table (IAT). The content of this table is
identical to the content of the Import Lookup Table (ILT) until the image is bound.
pub fn import_lookup_table_rva(&self) -> u32
pub fn import_lookup_table_rva(&self) -> u32
Return the relative virtual address of the import lookup table
pub fn directory(&self) -> Option<DataDirectory<'_>>
pub fn directory(&self) -> Option<DataDirectory<'_>>
Return the DataDirectory associated with this import.
pub fn iat_directory(&self) -> Option<DataDirectory<'_>>
pub fn iat_directory(&self) -> Option<DataDirectory<'_>>
Return the DataDirectory associated with the IAT (import address table).
pub fn entry_by_name(&self, name: &str) -> Option<ImportEntry<'_>>
pub fn entry_by_name(&self, name: &str) -> Option<ImportEntry<'_>>
Try to find an ImportEntry by its name
pub fn remove_entry_by_name(&mut self, name: &str) -> bool
pub fn remove_entry_by_name(&mut self, name: &str) -> bool
Remove the import entry with the given name.
Return true if the deletion succeed, false otherwise
pub fn remove_entry_by_ordinal(&mut self, ord: u32) -> bool
pub fn remove_entry_by_ordinal(&mut self, ord: u32) -> bool
Remove the import entry with the given ordinal number
Return true if the deletion succeed, false otherwise
pub fn add_entry_by_name<'a>(&'a mut self, name: &str) -> ImportEntry<'a>
pub fn add_entry_by_name<'a>(&'a mut self, name: &str) -> ImportEntry<'a>
Add a new entry with the given name