Table of Contents

Method LoadLibrary

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

LoadLibrary(string)

Loads the specified module into the address space of the calling process.

public static extern nint LoadLibrary(string lpFileName)

Parameters

lpFileName string

The 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

nint

A handle to the loaded module if the operation succeeds; otherwise, Zero.

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.