
154
CHAPTER 5 MEMORY MANAGEMENT, MEMORY-MAPPED FILES, AND DLLS
3. means that is not called for
process a nd thread initialization, and additional modules referenced within
the DLL are not loaded.
When you’re finished with a DLL instance, possibly to load a different version
of the DLL, you free the library handle, thereby freeing the resources,
including
virtual add ress space, allocated to the library. The DLL will, however, remain
loaded if the reference count indicates that other processes are still using it.
After loading a library and before freeing it, you can obtain the address of any
entry point using
.
, despite the different type n