BASS.NET API for the Un4seen BASS Audio LibraryUtilsLIBFreeLibrary Method BASS.NET API for the Un4seen BASS Audio Library
This function decrements the reference count of the loaded dynamic-link library (DLL) loaded via LIBLoadLibrary(String). When the reference count reaches zero, the module is unmapped from the address space of the calling process and the handle is no longer valid.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version:

[DllImportAttribute("kernel32.dll", EntryPoint = "FreeLibrary")]
public static bool LIBFreeLibrary(
	int hModule


Type: SystemInt32
Handle to the loaded DLL module. The LIBLoadLibrary(String) returns this handle.

Return Value

Type: Boolean
If the function succeeds, the return value is . If the function fails, the return value is .

Each process maintains a reference count for each loaded library module. This reference count is incremented each time LIBLoadLibrary(String) is called and is decremented each time LIBFreeLibrary(Int32) is called.
See Also