|
LIEF: Library to Instrument Executable Formats Version 2.0.0
|
Class that represents a PE delayed import. More...
#include <DelayImport.hpp>


Public Types | |
| using | entries_t = std::vector<std::unique_ptr<DelayImportEntry>> |
| using | it_entries = ref_iterator<entries_t&, DelayImportEntry*> |
| using | it_const_entries |
| Public Types inherited from LIEF::Object | |
| template<class T> | |
| using | output_t = add_pointer_t<decay_t<T>> |
| template<class T> | |
| using | output_const_t = add_pointer_t<add_const_t<decay_t<T>>> |
Public Member Functions | |
| DelayImport ()=default | |
| DelayImport (const details::delay_imports &import, PE_TYPE type) | |
| DelayImport (std::string name) | |
| ~DelayImport () override=default | |
| DelayImport (const DelayImport &other) | |
| DelayImport & | operator= (DelayImport other) |
| DelayImport (DelayImport &&) noexcept=default | |
| DelayImport & | operator= (DelayImport &&) noexcept=default |
| void | swap (DelayImport &other) |
| uint32_t | attribute () const |
| Raw Attributes value of the descriptor. | |
| void | attribute (uint32_t hdl) |
| bool | is_rva_based () const |
| Check if the dlattrRva flag of attribute() is set, i.e. if the addresses of the descriptor are RVAs. | |
| std::string_view | name () const |
| Return the library's name (e.g. kernel32.dll). | |
| void | name (std::string name) |
| uint32_t | handle () const |
| The RVA of the module handle (in the .data section) It is used for storage by the routine that is supplied to manage delay-loading. | |
| void | handle (uint32_t hdl) |
| uint32_t | iat () const |
| RVA of the delay-load import address table. | |
| void | iat (uint32_t iat) |
| uint32_t | names_table () const |
| RVA of the delay-load import names table. The content of this table has the layout as the Import lookup table. | |
| void | names_table (uint32_t value) |
| uint32_t | biat () const |
| RVA of the bound delay-load import address table or 0 if the table does not exist. | |
| void | biat (uint32_t value) |
| uint32_t | uiat () const |
| RVA of the unload delay-load import address table or 0 if the table does not exist. | |
| void | uiat (uint32_t value) |
| uint32_t | timestamp () const |
| The timestamp of the DLL to which this image has been bound. | |
| void | timestamp (uint32_t value) |
| it_entries | entries () |
| Iterator over the DelayImport's entries (DelayImportEntry). | |
| it_const_entries | entries () const |
| Iterator over the DelayImport's entries (DelayImportEntry). | |
| void | accept (Visitor &visitor) const override |
| Public Member Functions inherited from LIEF::Object | |
| Object () | |
| Object (const Object &other) | |
| Object & | operator= (const Object &other) |
| Object (Object &&) noexcept=default | |
| Object & | operator= (Object &&) noexcept=default |
| template<class T> | |
| output_t< T > | as () |
| template<class T> | |
| output_const_t< T > | as () const |
| virtual bool | operator== (const Object &other) const |
| virtual bool | operator!= (const Object &other) const |
| virtual | ~Object () |
Class that represents a PE delayed import.
| using LIEF::PE::DelayImport::entries_t = std::vector<std::unique_ptr<DelayImportEntry>> |
|
default |
Referenced by DelayImport(), DelayImport(), operator<<, operator=(), operator=(), and swap().
| LIEF::PE::DelayImport::DelayImport | ( | const details::delay_imports & | import, |
| PE_TYPE | type ) |
|
inline |
References name().
|
overridedefault |
| LIEF::PE::DelayImport::DelayImport | ( | const DelayImport & | other | ) |
References DelayImport().
|
defaultnoexcept |
References DelayImport().
|
overridevirtual |
Implements LIEF::Object.
|
inline |
Raw Attributes value of the descriptor.
The PE specifications say that it must be zero but the delay-load helpers use it to check if the addresses of the descriptor are RVAs or VAs
See: is_rva_based()
References attribute().
Referenced by attribute().
|
inline |
|
inline |
RVA of the bound delay-load import address table or 0 if the table does not exist.
|
inline |
|
inline |
Iterator over the DelayImport's entries (DelayImportEntry).
References LIEF_LIFETIMEBOUND.
|
inline |
Iterator over the DelayImport's entries (DelayImportEntry).
References LIEF_LIFETIMEBOUND.
|
inline |
The RVA of the module handle (in the .data section) It is used for storage by the routine that is supplied to manage delay-loading.
|
inline |
|
inline |
RVA of the delay-load import address table.
Referenced by iat().
|
inline |
References iat().
|
inline |
Check if the dlattrRva flag of attribute() is set, i.e. if the addresses of the descriptor are RVAs.
|
inline |
Return the library's name (e.g. kernel32.dll).
References LIEF_LIFETIMEBOUND.
Referenced by DelayImport(), and name().
|
inline |
References name().
|
inline |
RVA of the delay-load import names table. The content of this table has the layout as the Import lookup table.
|
inline |
|
defaultnoexcept |
References DelayImport().
|
inline |
References DelayImport(), and swap().
| void LIEF::PE::DelayImport::swap | ( | DelayImport & | other | ) |
References DelayImport(), and swap().
Referenced by operator=(), and swap().
|
inline |
The timestamp of the DLL to which this image has been bound.
|
inline |
|
inline |
RVA of the unload delay-load import address table or 0 if the table does not exist.
According to the PE specifications, this table is an exact copy of the delay import address table that can be used to restore the original IAT in the case of unloading.
|
inline |