Win32 API - Dynamic Link Library Loading - behind the scenes
Hi everybody !
My problem is that I want to load a library (DLL)
that resides in memory. I am not a newbie, nor
do I need any help with C/C++. Actually this
questions is targeted at those amongst you
who have got some deeper knowledge of the
Win32 Sub-system. Concerning dynamic loading
of libraries you would either statically link a DLL's
library to the final executable or load the DLL
at runtime via LoadLibrary() and then get the
the address/handle via GetProcAddress of the
What I want to do is to load a DLL without using
the mentioned functions. Win32 is doing quite a lot
_behind the scenes_ - For Example RVA to Offset
calculation and such stuff is done via APIs
that are rather undocumented. IAT patching is also
done in the background - without any user interaction
respectively user code being involved in that process.
Although I do know a couple of functions that are
executed I don't know everything what's going on
behind LoadLibrary() and GetProcAddress().
In particular I need those functions that are involved
with memory mapped files - DLLs are mapped when
being executed. So that I would be able to
load an image of a DLL that's beein loaded into the memory
without the usual functions.
Thanks for all comments/ideas (if any)