Question: how dll is loaded in memory?
Answer: DLLs and Memory Management Every process that loads the DLL maps it into its virtual address space. ... The DLL uses the stack of the calling thread and the virtual address space of the calling process. The DLL allocates memory from the virtual address space of the calling process.