Original entry point
-
Hi everyone I have little problem with determining correct AddressOfEntryPoint in PE headers. When this param is incorrect, then I try execute exe file, Windows says, that isn't Win32 application. How to programmatically check, which value should be contain AddressOfEntryPoint ? Is it possible to determine correct value based on other parts PE headers e.g. IMAGE_DATA_DIRECTORY ? snippet of source code will be blessing :) Mila
-
Hi everyone I have little problem with determining correct AddressOfEntryPoint in PE headers. When this param is incorrect, then I try execute exe file, Windows says, that isn't Win32 application. How to programmatically check, which value should be contain AddressOfEntryPoint ? Is it possible to determine correct value based on other parts PE headers e.g. IMAGE_DATA_DIRECTORY ? snippet of source code will be blessing :) Mila
AddressOfEntryPoint is a realative value, that means it points to a address in the file. Have a look at some PE tutorials, they will show you how to calculate the right value. Don't try it, just do it! ;-)