16#ifndef LIEF_RUNTIME_WINDOWS_LDR_DATA_TABLE_ENTRY_H
17#define LIEF_RUNTIME_WINDOWS_LDR_DATA_TABLE_ENTRY_H
46 LdrDataTableEntry, std::ptrdiff_t,
47 const LdrDataTableEntry*,
48 const LdrDataTableEntry&> {
51 using iterator_facade_base::operator++;
52 using iterator_facade_base::operator--;
89 std::unique_ptr<
details::ldr_entry_it> impl_;
219 LIEF_API friend std::ostream& operator<<(std::ostream& os,
221 os << entry.to_string();
228 std::unique_ptr<details::ldr_entry> impl_;
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
Definition iterators.hpp:750
Definition optional.hpp:23
Iterator(std::unique_ptr< details::ldr_entry_it > impl)
Iterator & operator=(const Iterator &)
details::ldr_entry_it implementation
Definition LdrDataTableEntry.hpp:50
Iterator(Iterator &&) noexcept
Iterator(const Iterator &)
std::unique_ptr< LdrDataTableEntry > yield()
Transfer ownership of the entry at the current position to the caller. Returns nullptr if the iterato...
optional< uintptr_t > active_patch_image_base() const
Base address of the active hot-patch image, if any.
optional< uintptr_t > original_base() const
Preferred base address recorded in the PE headers.
uintptr_t dll_base() const
Base address at which the module is mapped in memory (DllBase).
optional< uintptr_t > load_context() const
Address of the loader context used while the module is being snapped.
std::string to_string() const
Pretty-printed representation of this entry.
uint32_t flags() const
Loader flags describing the state of the module (Flags).
optional< uintptr_t > switch_back_context() const
Address of the CHPE switch-back context.
optional< uint32_t > implicit_path_options() const
Path-search options implied when the module was resolved.
optional< uint32_t > base_name_hash_value() const
Hash of the module's base name used to index the loader tables.
uint32_t size_of_image() const
Size (in bytes) of the module's image in memory (SizeOfImage).
uint16_t tls_index() const
TLS slot index assigned to the module, or 0 when it has no TLS (TlsIndex).
uintptr_t entry_point() const
Address of the entry point of the module (EntryPoint).
optional< uintptr_t > ddag_node() const
Address of the dependency-graph node of the module (DdagNode).
optional< int64_t > load_time() const
Time at which the module was loaded.
optional< uint32_t > dependent_load_flags() const
Flags controlling how the statically-linked dependencies of the module are loaded.
optional< uint8_t > signing_level() const
Signing level of the module's image, as a SE_SIGNING_LEVEL value.
optional< uint32_t > check_sum() const
Image checksum cached by the loader.
optional< int32_t > load_reason() const
Reason why the module was loaded, as a LDR_DLL_LOAD_REASON value.
optional< uintptr_t > parent_dll_base() const
Base address of the module that triggered the load of this one.
LdrDataTableEntry()=delete
uint16_t obsolete_load_count() const
Legacy load count of the module (ObsoleteLoadCount). Superseded by reference_count() on Windows 8 and...
uintptr_t lock() const
Address of the per-entry loader lock.
std::string base_dll_name() const
Base name of the module (BaseDllName), e.g. ntdll.dll.
optional< uint32_t > hot_patch_state() const
State of the hot-patch engine for this module, as a LDR_HOT_PATCH_STATE value.
uintptr_t entry_point_activation_context() const
Address of the activation context associated with the module's entry point.
optional< uint32_t > reference_count() const
Number of references currently held on the module.
std::string full_dll_name() const
Full path of the module (FullDllName), e.g. C:\Windows\System32\ntdll.dll.
uint32_t time_date_stamp() const
TimeDateStamp of the module as cached by the loader.
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition LdrDataTableEntry.hpp:32
Definition windows/Host.hpp:25
Definition android/Host.hpp:24
LIEF namespace.
Definition Abstract/Binary.hpp:41
#define LIEF_API
Definition visibility.h:45