LoadLibraryFreeLibrary
LoadLibrary and FreeLibrary are functions in the Windows API used for dynamic linking of DLLs. LoadLibrary is used to load a DLL into the address space of the calling process. It takes the path to the DLL as an argument and returns a handle to the loaded module if successful, or NULL if an error occurs. This handle can then be used to access functions and data within the DLL.
Once a DLL is no longer needed, FreeLibrary is used to unload it from the process's address
It is crucial to pair every successful LoadLibrary call with a corresponding FreeLibrary call to prevent memory
Developers typically use LoadLibrary and FreeLibrary when they need to load functionality from a DLL at runtime