How can I close the file handle opened by a LoadLibrary call on a .dll while keeping the library loaded? FreeLibrary will not work for example.
In my case there is a program I want to keep open that has the DLL open, but I don't want to close the program each time I recompile and replace the DLL. I don't care if the program has an old version of the library in memory. The DLL is also used by another program which is why I want to be able to replace it.