16#ifndef LIEF_PE_DELAY_IMPORT_H
17#define LIEF_PE_DELAY_IMPORT_H
22#include "LIEF/Object.hpp"
23#include "LIEF/types.hpp"
24#include "LIEF/visibility.h"
25#include "LIEF/iterators.hpp"
27#include "LIEF/PE/DelayImportEntry.hpp"
43 using entries_t = std::vector<DelayImportEntry>;
64 void attribute(uint32_t hdl);
67 const std::string&
name()
const;
68 void name(std::string name);
74 void handle(uint32_t hdl);
78 void iat(uint32_t iat);
83 void names_table(uint32_t value);
88 void biat(uint32_t value);
97 void uiat(uint32_t value);
101 void timestamp(uint32_t value);
109 void accept(
Visitor& visitor)
const override;
112 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const DelayImport& entry);
115 uint32_t attribute_ = 0;
117 uint32_t handle_ = 0;
119 uint32_t names_table_ = 0;
120 uint32_t bound_iat_ = 0;
121 uint32_t unload_iat_ = 0;
122 uint32_t timestamp_ = 0;
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
Class that represents a PE delayed import.
Definition DelayImport.hpp:37
uint32_t uiat() const
RVA of the unload delay-load import address table or 0 if the table does not exist.
uint32_t timestamp() const
The timestamp of the DLL to which this image has been bound.
it_const_entries entries() const
Iterator over the DelayImport's entries (DelayImportEntry)
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...
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...
uint32_t biat() const
RVA of the bound delay-load import address table or 0 if the table does not exist.
it_entries entries()
Iterator over the DelayImport's entries (DelayImportEntry)
uint32_t attribute() const
According to the official PE specifications, this value is reserved and should be set to 0.
const std::string & name() const
Return the library's name (e.g. kernel32.dll)
uint32_t iat() const
RVA of the delay-load import address table.
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Definition Visitor.hpp:219
Iterator which returns reference on container's values.
Definition iterators.hpp:48
PE_TYPE
Definition PE/enums.hpp:680
LIEF namespace.
Definition Abstract/Binary.hpp:32