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_EXPORT_H
17#define LIEF_PE_EXPORT_H
34struct pe_export_directory_table;
43 using entries_t = std::vector<ExportEntry>;
44 using it_entries = ref_iterator<entries_t&>;
45 using it_const_entries = const_ref_iterator<const entries_t&>;
48 Export(
const details::pe_export_directory_table& header);
66 return major_version_;
71 return minor_version_;
78 const std::string&
name()
const {
94 export_flags_ = flags;
97 timestamp_ = timestamp;
101 major_version_ = major_version;
105 minor_version_ = minor_version;
108 ordinal_base_ = ordinal_base;
112 name_ = std::move(name);
115 void accept(Visitor& visitor)
const override;
120 uint32_t export_flags_ = 0;
121 uint32_t timestamp_ = 0;
122 uint16_t major_version_ = 0;
123 uint16_t minor_version_ = 0;
124 uint32_t ordinal_base_ = 0;
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
Class which represents a PE Export.
Definition Export.hpp:38
uint32_t export_flags() const
According to the PE specifications this value is reserved and should be set to 0.
Definition Export.hpp:55
void minor_version(uint16_t minor_version)
Definition Export.hpp:104
uint16_t major_version() const
The major version number (can be user-defined)
Definition Export.hpp:65
uint16_t minor_version() const
The minor version number (can be user-defined)
Definition Export.hpp:70
uint32_t ordinal_base() const
The starting number for the exports. Usually this value is set to 1.
Definition Export.hpp:75
void name(std::string name)
Definition Export.hpp:111
void major_version(uint16_t major_version)
Definition Export.hpp:100
Export(const details::pe_export_directory_table &header)
Export(const Export &)=default
it_const_entries entries() const
Definition Export.hpp:89
void accept(Visitor &visitor) const override
void export_flags(uint32_t flags)
Definition Export.hpp:93
~Export() override=default
Export & operator=(const Export &)=default
void ordinal_base(uint32_t ordinal_base)
Definition Export.hpp:107
friend std::ostream & operator<<(std::ostream &os, const Export &exp)
const std::string & name() const
The name of the library exported (e.g. KERNEL32.dll)
Definition Export.hpp:80
it_entries entries()
Iterator over the ExportEntry.
Definition Export.hpp:85
uint32_t timestamp() const
The time and date that the export data was created.
Definition Export.hpp:60
void timestamp(uint32_t timestamp)
Definition Export.hpp:96
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Definition CodeIntegrity.hpp:26
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41