15#ifndef LIEF_PE_DELAY_IMPORT_H
16#define LIEF_PE_DELAY_IMPORT_H
43 using entries_t = std::vector<std::unique_ptr<DelayImportEntry>>;
51 name_(std::move(
name)) {}
83 return (attribute_ & 0x1) != 0;
92 name_ = std::move(
name);
122 names_table_ = value;
174 uint32_t attribute_ = 0;
176 uint32_t handle_ = 0;
178 uint32_t names_table_ = 0;
179 uint32_t bound_iat_ = 0;
180 uint32_t unload_iat_ = 0;
181 uint32_t timestamp_ = 0;
bool is_rva_based() const
Check if the dlattrRva flag of attribute() is set, i.e. if the addresses of the descriptor are RVAs.
Definition DelayImport.hpp:82
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:141
const_ref_iterator< const entries_t &, const DelayImportEntry * > it_const_entries
Definition DelayImport.hpp:45
uint32_t timestamp() const
The timestamp of the DLL to which this image has been bound.
Definition DelayImport.hpp:150
~DelayImport() override=default
void name(std::string name)
Definition DelayImport.hpp:91
void timestamp(uint32_t value)
Definition DelayImport.hpp:154
DelayImport(const details::delay_imports &import, PE_TYPE type)
it_const_entries entries() const
Iterator over the DelayImport's entries (DelayImportEntry).
Definition DelayImport.hpp:164
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:98
std::vector< std::unique_ptr< DelayImportEntry > > entries_t
Definition DelayImport.hpp:43
DelayImport(const DelayImport &other)
std::string_view name() const
Return the library's name (e.g. kernel32.dll).
Definition DelayImport.hpp:87
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:117
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:127
void accept(Visitor &visitor) const override
void biat(uint32_t value)
Definition DelayImport.hpp:131
void attribute(uint32_t hdl)
Definition DelayImport.hpp:76
friend class Builder
Definition DelayImport.hpp:40
it_entries entries()
Iterator over the DelayImport's entries (DelayImportEntry).
Definition DelayImport.hpp:159
void iat(uint32_t iat)
Definition DelayImport.hpp:111
friend class Parser
Definition DelayImport.hpp:39
DelayImport(std::string name)
Definition DelayImport.hpp:50
uint32_t attribute() const
Raw Attributes value of the descriptor.
Definition DelayImport.hpp:72
void names_table(uint32_t value)
Definition DelayImport.hpp:121
uint32_t iat() const
RVA of the delay-load import address table.
Definition DelayImport.hpp:107
DelayImport(DelayImport &&) noexcept=default
ref_iterator< entries_t &, DelayImportEntry * > it_entries
Definition DelayImport.hpp:44
void handle(uint32_t hdl)
Definition DelayImport.hpp:102
void swap(DelayImport &other)
void uiat(uint32_t value)
Definition DelayImport.hpp:145
Definition Visitor.hpp:211
Iterator which returns reference on container's values.
Definition iterators.hpp:120
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition DataDirectory.hpp:37
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:31
PE_TYPE
Definition PE/enums.hpp:22
@ PE32
32bits
Definition PE/enums.hpp:23
ref_iterator< CT, U, typename decay_t< CT >::const_iterator > const_ref_iterator
Iterator which returns a const ref on container's values.
Definition iterators.hpp:385
#define LIEF_API
Definition visibility.h:44