FreeLibrary 및 AfxFreeLibrary
Processes that explicitly link to a DLL call the FreeLibrary function when the DLL module is no longer needed. 이 함수는 해당 모듈의 참조 횟수를 1만큼 줄이며, 참조 횟수가 0이면 프로세스의 주소 공간에서 해당 모듈을 매핑 해제합니다.
In an MFC application, use AfxFreeLibrary instead of FreeLibrary to unload an extension DLL. AfxFreeLibrary용 인터페이스(함수 프로토타입)는 FreeLibrary의 경우와 같습니다.