Assembly: Bass.Net (in Bass.Net.dll) Version: 184.108.40.206
[DllImportAttribute("kernel32.dll", EntryPoint = "LoadLibrary")] public static int LIBLoadLibrary( string fileName )
<DllImportAttribute("kernel32.dll", EntryPoint := "LoadLibrary">] Public Shared Function LIBLoadLibrary ( fileName As String ) As Integer
- 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 ValueType: Int32
If the function succeeds, the return value is a handle to the module. If the function fails, the return value is 0.
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.