I have referenced a legacy DLL using the DLLImport mechanism. Is it possible to manually free the reference after I have used it? (i.e. equivalent to using Win 32 FreeLibrary()).
Alternatively, if I could use LoadLibrary() & FreeLibrary () instead of the import facility, that would do fine
The C# code calls the DLL function to determine whether a particular application is running. If the DLL reference is held, the application then refuses to start.