Method LoadLibrary
LoadLibrary(string)
Loads the specified module into the address space of the calling process.
public static extern nint LoadLibrary(string lpFileName)
Parameters
lpFileNamestringThe name of the module to load. This can be either a full path or the name of a module in the system's search path.
Returns
Remarks
This method is a platform invocation (P/Invoke) wrapper for the Windows API
function LoadLibrary. The caller is responsible for ensuring
that the module is unloaded using
the appropriate method (e.g., FreeLibrary) when it is no longer needed.