From 77cbd46254c491fb56d863494b9102217f297252 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 28 Jan 2017 05:15:30 +0000 Subject: ldso: added pe_find_framework_loader(). --- include/pemagine/pemagine.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') diff --git a/include/pemagine/pemagine.h b/include/pemagine/pemagine.h index 61ffb7a..8b7e0a9 100644 --- a/include/pemagine/pemagine.h +++ b/include/pemagine/pemagine.h @@ -19,6 +19,12 @@ enum pe_callback_reason { }; +/* ldso flags */ +#define PE_LDSO_INTEGRAL_ONLY 0x00000000 +#define PE_LDSO_DEFAULT_EXECUTABLE 0x00000001 +#define PE_LDSO_STANDALONE_EXECUTABLE 0x00000002 + + /* library specific structures */ struct pe_export_sym { uint32_t * ordinal_base; @@ -137,6 +143,8 @@ struct pe_framework_runtime_data { void * hparent; void * himage; void * hroot; + void * hdsodir; + void * hloader; void * hcwd; void * hdrive; struct pe_guid abi; @@ -238,6 +246,16 @@ pe_api int32_t pe_get_framework_runtime_data( const wchar16_t * cmdline, const struct pe_guid * abi); +pe_api int32_t pe_find_framework_loader( + struct pe_framework_runtime_data * rtdata, + const wchar16_t * basename, + const wchar16_t * rrelname, + void * refaddr, + uintptr_t * buffer, + uint32_t bufsize, + uint32_t flags); + + pe_api int32_t pe_open_image_from_addr( void ** himage, void * addr, -- cgit v1.2.3