I was wondering if there was any way I could incorporate my Keyboard Hook DLL into my executable. Is there any relatively simple way I could load a DLL dynamically from memory? Thanks
Posted on 2000-11-21 20:31:00 by martin
Sure, several ways. The LoadLibrary/FreeLibrary calls work just fine, but I prefer to let MASM do all it can for me and do that work. Iczelion has some excellent tuts on dlls. I suggest you read them.
Posted on 2000-11-22 00:47:00 by TTom
But how can I load a DLL from memory, rather than a file?
Posted on 2000-11-22 17:35:00 by martin
It can be done but not easy. You must allocate enough address space for the DLL with VirtualAlloc then write the dll to the allocated block section by section. You also need to modify the PE header of the dll and you must use the information in the reloc section to relocate the whole dll.
Posted on 2000-11-22 19:55:00 by Iczelion