I’m programming a library that generates .NET assembly’s manifests and I need to get the image base value of the assembly’s modules. How can I get it in C#?
I’m programming a library that generates .NET assembly’s manifests and I need to get
Share
You have to read the Portable Executable Header of the DLL or EXE. Instructions for doing that can be found here:
Reading the Portable Executable (PE) header in C#
http://code.cheesydesign.com/?p=572
ImageBaseis located inIMAGE_OPTIONAL_HEADER32: