Comprehensive WOW64 subsystem implementation

This commit is contained in:
brian
2025-10-13 19:53:14 +08:00
parent 9453123db0
commit 65eecf1cfd
51 changed files with 3772 additions and 283 deletions

View File

@@ -32,9 +32,17 @@ struct mapped_module
std::filesystem::path path{};
uint64_t image_base{};
uint64_t image_base_file{};
uint64_t size_of_image{};
uint64_t entry_point{};
// PE header fields
uint16_t machine{}; // Machine type from file header
uint64_t size_of_stack_reserve{}; // Stack reserve size from optional header
uint64_t size_of_stack_commit{}; // Stack commit size from optional header
uint64_t size_of_heap_reserve{}; // Heap reserve size from optional header
uint64_t size_of_heap_commit{}; // Heap commit size from optional header
exported_symbols exports{};
imported_symbols imports{};
imported_module_list imported_modules{};
@@ -61,4 +69,9 @@ struct mapped_module
return 0;
}
uint64_t get_image_base_file() const
{
return this->image_base_file;
}
};