BASS.NET API for the Un4seen BASS Audio LibraryUtilsLIBLoadLibrary Method BASS.NET API for the Un4seen BASS Audio Library
LIB (kernel32.dll) - Loads a native unmanaged library (dll) into the process of our executable.

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

[DllImportAttribute("kernel32.dll", EntryPoint = "LoadLibrary")]
public static int LIBLoadLibrary(
	string fileName


Type: SystemString
Name and/or path to the executable module (either a .dll or .exe file). The name specified is the file name of the module and is not related to the name stored in the library module itself.

If the string does not specify a path, the function uses a standard search strategy to find the file

Return Value

Type: Int32
If the function succeeds, the return value is a handle to the module. If the function fails, the return value is 0.

This can be used for late bound explicit linking.

If fileName does not include a path and there is more than one loaded module with the same base name and extension, the function returns a handle to the module that was loaded first. If no file name extension is specified in the fileName parameter, the default library extension .dll is appended. However, the file name string can include a trailing point character (.) to indicate that the module name has no extension. When no path is specified, the function searches for loaded modules whose base name matches the base name of the module to be loaded. If the name matches, the load succeeds. Otherwise, the function searches for the file. The first directory searched is the one directory containing the image file used to create the calling process.

A module loaded via LIBLoadLibrary should be released using the LIBFreeLibrary(Int32) method when it is not needed anymore.

See Also