How to Free a Load-Time DLL?
Does anyone know to Free a Load-Time DLL?
When you load a DLL when your process is already running and has started up, you use the LoadLibrary function to load it, that is called Run-Time Dynamic Linking. And when you are done with the DLL, you don't need it anymore, you use the FreeLibrary function to unmap it from your address space.
But when you use a DLL at the beginning of your process, when it is starting up, you use the header files with the functions of your DLL and the .a file during compiling. Now you just can call the functions of your DLL in your program, that is called Load-Time Dynamic Linking. But when you don't need it anymore, somehow, how can you unmap the DLL from your address space? Using the FreeLibrary function doesn't work.
Thanks in advance, Ktulu.