LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_PE_DELAY_IMPORT_H
17#define LIEF_PE_DELAY_IMPORT_H
43 using entries_t = std::vector<std::unique_ptr<DelayImportEntry>>;
44 using it_entries = ref_iterator<entries_t&, DelayImportEntry*>;
45 using it_const_entries = const_ref_iterator<const entries_t&, const DelayImportEntry*>;
48 DelayImport(
const details::delay_imports&
import, PE_TYPE type);
50 name_(std::move(name))
62 DelayImport& operator=(DelayImport&&) noexcept = default;
64 void swap(DelayImport& other);
65 uint32_t attribute()
const {
74 const std::string&
name()
const {
79 void name(std::string name) {
80 name_ = std::move(name);
92 uint32_t
iat()
const {
97 void iat(uint32_t iat) {
107 names_table_ = value;
109 uint32_t
biat()
const {
118 uint32_t
uiat()
const {
144 it_const_entries
entries()
const {
150 void accept(Visitor& visitor)
const override;
155 uint32_t attribute_ = 0;
157 uint32_t handle_ = 0;
159 uint32_t names_table_ = 0;
160 uint32_t bound_iat_ = 0;
161 uint32_t unload_iat_ = 0;
162 uint32_t timestamp_ = 0;
Class that represents a PE delayed import.
Definition DelayImport.hpp:37
DelayImport & operator=(DelayImport other)
Definition DelayImport.hpp:56
uint32_t uiat() const
RVA of the unload delay-load import address table or 0 if the table does not exist.
Definition DelayImport.hpp:125
uint32_t timestamp() const
The timestamp of the DLL to which this image has been bound.
Definition DelayImport.hpp:133
~DelayImport() override=default
void name(std::string name)
Definition DelayImport.hpp:79
void timestamp(uint32_t value)
Definition DelayImport.hpp:136
DelayImport(const details::delay_imports &import, PE_TYPE type)
it_const_entries entries() const
Iterator over the DelayImport's entries (DelayImportEntry)
Definition DelayImport.hpp:146
uint32_t handle() const
The RVA of the module handle (in the .data section) It is used for storage by the routine that is sup...
Definition DelayImport.hpp:86
DelayImport(const DelayImport &other)
uint32_t names_table() const
RVA of the delay-load import names table. The content of this table has the layout as the Import look...
Definition DelayImport.hpp:103
friend std::ostream & operator<<(std::ostream &os, const DelayImport &entry)
uint32_t biat() const
RVA of the bound delay-load import address table or 0 if the table does not exist.
Definition DelayImport.hpp:112
void accept(Visitor &visitor) const override
void biat(uint32_t value)
Definition DelayImport.hpp:115
void attribute(uint32_t hdl)
Definition DelayImport.hpp:71
it_entries entries()
Iterator over the DelayImport's entries (DelayImportEntry)
Definition DelayImport.hpp:141
void iat(uint32_t iat)
Definition DelayImport.hpp:97
DelayImport(std::string name)
Definition DelayImport.hpp:49
void names_table(uint32_t value)
Definition DelayImport.hpp:106
const std::string & name() const
Return the library's name (e.g. kernel32.dll)
Definition DelayImport.hpp:76
uint32_t iat() const
RVA of the delay-load import address table.
Definition DelayImport.hpp:94
DelayImport(DelayImport &&) noexcept=default
void handle(uint32_t hdl)
Definition DelayImport.hpp:89
void uiat(uint32_t value)
Definition DelayImport.hpp:128
Definition DataDirectory.hpp:37
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
PE_TYPE
Definition PE/enums.hpp:22
LIEF namespace.
Definition Abstract/Binary.hpp:39
#define LIEF_API
Definition visibility.h:41