Pelles C forum

Assembly language => Assembly discussions => Topic started by: HellOfMice on January 02, 2025, 05:32:58 PM

Title: First question for 2025
Post by: HellOfMice on January 02, 2025, 05:32:58 PM
In a PE file

In the OptionaFilelheader64 the member NumberOfRvaAndSizes indicates the number of Data Directories. If we want to know how really there are data Directories we are obligned to cross them and to test if the VirtualAddress and the Size are equal to 0 or is there another way?
DWORD NumberOfRvaAndSizes
The number of entries in the DataDirectory array (below). This value is always set to 16 by the current tools.

Title: Re: First question for 2025
Post by: HellOfMice on January 02, 2025, 05:52:38 PM
Here too: https://github.com/geoffmcl/pedump2/blob/next/src/exedump.cpp (https://github.com/geoffmcl/pedump2/blob/next/src/exedump.cpp)