From c6d46cf97304d829fba6085544aab577be3c6249 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 18 Dec 2017 12:22:15 +0000 Subject: pe_get_ldr_entry_from_addr(): initial implementation. --- include/pemagine/pe_ldso.h | 1 + include/pemagine/pemagine.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/pemagine/pe_ldso.h b/include/pemagine/pe_ldso.h index 2d81774..30019c5 100644 --- a/include/pemagine/pe_ldso.h +++ b/include/pemagine/pe_ldso.h @@ -12,6 +12,7 @@ #define pe_get_export_symbol_info __ldso_get_export_symbol_info #define pe_get_first_module_handle __ldso_get_first_module_handle #define pe_get_framework_runtime_data __ldso_get_framework_runtime_data +#define pe_get_ldr_entry_from_addr __ldso_get_ldr_entry_from_addr #define pe_get_image_coff_hdr_addr __ldso_get_image_coff_hdr_addr #define pe_get_image_data_dirs_addr __ldso_get_image_data_dirs_addr #define pe_get_image_dos_hdr_addr __ldso_get_image_dos_hdr_addr diff --git a/include/pemagine/pemagine.h b/include/pemagine/pemagine.h index 283d579..99ba86a 100644 --- a/include/pemagine/pemagine.h +++ b/include/pemagine/pemagine.h @@ -241,6 +241,8 @@ pe_api void * pe_get_kernel32_module_handle (void); /* ldso */ pe_api wchar16_t * pe_get_peb_command_line(void); pe_api wchar16_t * pe_get_peb_environment_block(void); +pe_api struct pe_ldr_tbl_entry * pe_get_ldr_entry_from_addr(const void * addr); + pe_api int32_t pe_get_framework_runtime_data( struct pe_framework_runtime_data ** rtdata, -- cgit v1.2.3