16#ifndef LIEF_RUNTIME_WINDOWS_LDR_DATA_TABLE_ENTRY_H
17#define LIEF_RUNTIME_WINDOWS_LDR_DATA_TABLE_ENTRY_H
45 LdrDataTableEntry, std::ptrdiff_t,
46 const LdrDataTableEntry*,
47 const LdrDataTableEntry&> {
50 using iterator_facade_base::operator++;
51 using iterator_facade_base::operator--;
88 std::unique_ptr<
details::ldr_entry_it> impl_;
218 LIEF_API friend std::ostream& operator<<(std::ostream& os,
220 os << entry.to_string();
227 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:738
Iterator(std::unique_ptr< details::ldr_entry_it > impl)
Iterator & operator=(const Iterator &)
details::ldr_entry_it implementation
Definition LdrDataTableEntry.hpp:49
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...
std::optional< uint32_t > reference_count() const
Number of references currently held on the module.
uintptr_t dll_base() const
Base address at which the module is mapped in memory (DllBase).
std::optional< int64_t > load_time() const
Time at which the module was loaded.
std::optional< uint32_t > base_name_hash_value() const
Hash of the module's base name used to index the loader tables.
std::optional< int32_t > load_reason() const
Reason why the module was loaded, as a LDR_DLL_LOAD_REASON value.
std::string to_string() const
Pretty-printed representation of this entry.
std::optional< uint8_t > signing_level() const
Signing level of the module's image, as a SE_SIGNING_LEVEL value.
uint32_t flags() const
Loader flags describing the state of the module (Flags).
std::optional< uint32_t > check_sum() const
Image checksum cached by the loader.
std::optional< uintptr_t > parent_dll_base() const
Base address of the module that triggered the load of this one.
std::optional< uint32_t > implicit_path_options() const
Path-search options implied when the module was resolved.
std::optional< uintptr_t > active_patch_image_base() const
Base address of the active hot-patch image, if any.
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).
std::optional< uintptr_t > load_context() const
Address of the loader context used while the module is being snapped.
std::optional< uintptr_t > ddag_node() const
Address of the dependency-graph node of the module (DdagNode).
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.
std::optional< uintptr_t > switch_back_context() const
Address of the CHPE switch-back context.
std::optional< uintptr_t > original_base() const
Preferred base address recorded in the PE headers.
std::optional< uint32_t > dependent_load_flags() const
Flags controlling how the statically-linked dependencies of the module are loaded.
uintptr_t entry_point_activation_context() const
Address of the activation context associated with the module's entry point.
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.
std::optional< uint32_t > hot_patch_state() const
State of the hot-patch engine for this module, as a LDR_HOT_PATCH_STATE value.
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition LdrDataTableEntry.hpp:31
Definition windows/Host.hpp:24
#define LIEF_API
Definition visibility.h:45