summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-01-28 05:15:30 +0000
committermidipix <writeonce@midipix.org>2017-01-28 00:26:01 -0500
commit77cbd46254c491fb56d863494b9102217f297252 (patch)
tree532a057079f66403057d49c6ed29519f4baf10b7 /include
parent7cd4117bbe6a97ca13ff81c2ff2a165268bdeb55 (diff)
downloadpemagine-77cbd46254c491fb56d863494b9102217f297252.tar.bz2
pemagine-77cbd46254c491fb56d863494b9102217f297252.tar.xz
ldso: added pe_find_framework_loader().
Diffstat (limited to 'include')
-rw-r--r--include/pemagine/pemagine.h18
1 files changed, 18 insertions, 0 deletions
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,