Veamos que dice
MSDN:
Cita:
The system maintains a per-process reference count for each loaded module. A module that was loaded at process initialization due to load-time dynamic linking has a reference count of one. The reference count for a module is incremented each time the module is loaded by a call to LoadLibrary.
[...]
The reference count is decremented each time the FreeLibrary or FreeLibraryAndExitThread function is called for the module. When a module's reference count reaches zero or the process terminates, the system unloads the module from the address space of the process.
|
http://msdn.microsoft.com/es-es/site/ms683152
Según se colige, al terminar el programa la DLL también desocupa la memoria que usó en relación con el programa. Quedando totalmente descargada de la memoria de Windows si ningún otro programa la está usando.
Un abrazo liberado.
Al González.