XexGetProcedureAddress by name implemented.

This commit is contained in:
Dr. Chat
2015-05-04 17:38:34 -05:00
parent 78921c1a7e
commit 49c8efdc6d
8 changed files with 101 additions and 1 deletions

View File

@@ -43,6 +43,13 @@ class PESection {
uint32_t flags; // kXEPESection*
};
struct PEExport {
const char *name;
uint32_t ordinal;
uint64_t addr; // Function address
};
xe_xex2_ref xe_xex2_load(xe::Memory* memory, const void* addr,
const size_t length, xe_xex2_options_t options);
void xe_xex2_dealloc(xe_xex2_ref xex);
@@ -55,4 +62,7 @@ int xe_xex2_get_import_infos(xe_xex2_ref xex,
xe_xex2_import_info_t** out_import_infos,
size_t* out_import_info_count);
int xe_xex2_lookup_export(xe_xex2_ref xex, const char *name,
PEExport &peexport);
#endif // XENIA_KERNEL_UTIL_XEX2_H_