When you load a DLL with LoadLibrary, do you have to unload it or does it just unload itself when the program ends?
It will unload itself when the program ends. You can manually unload it, with the API function FreeLibrary, if you have need to move or delete the DLL.
Good.