Hello:
I would like to patch in memory an application, in order to configure an export table. Then I could use it to import some functions from an external application, in order to use some code of the patched application.
First, I launch the application with a loader. The application is packed.
When it is loaded, I write in the memory of the target process the configuration of the entire export table.
When trying to import some functions of that export table with the loader, I do the following:
I do LoadLIbrary of that application (it is an .exe file), then I want to GetProcAddress some functions of that table.
However, this is not working. Not providing any handle but nil.
I do not understand why.
Maybe it is because the export table couldn't be created patching in memory when the process is already loaded.
Do you have suggestion? Is it a better way to do that? I do not know if this could be performed with hooks...
Cheers
Nacho_dj