ReImplement XexModule::GetProcAddress

This commit is contained in:
Dr. Chat
2015-07-03 18:14:50 -05:00
parent d616231c8b
commit e58bb5ad9f
2 changed files with 88 additions and 2 deletions

View File

@@ -628,6 +628,21 @@ struct xex2_export_table {
ordOffset[1]; // 0x2C ordOffset[0] + (imagebaseaddr << 16) = function
};
// Little endian PE export directory (from winnt.h)
struct X_IMAGE_EXPORT_DIRECTORY {
uint32_t Characteristics;
uint32_t TimeDateStamp;
uint16_t MajorVersion;
uint16_t MinorVersion;
uint32_t Name;
uint32_t Base;
uint32_t NumberOfFunctions;
uint32_t NumberOfNames;
uint32_t AddressOfFunctions; // RVA from base of image
uint32_t AddressOfNames; // RVA from base of image
uint32_t AddressOfNameOrdinals; // RVA from base of image
};
} // namespace xe
#endif // XENIA_KERNEL_XEX2_INFO_H_