Table of Contents

Method LoadLocalLibrary

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

LoadLocalLibrary<T>(string)

Loads a native library by probing common locations and returns a handle to the loaded library.

public static nint LoadLocalLibrary<T>(string libraryName)

Parameters

libraryName string

The base name of the native library (may or may not include an extension).

Returns

nint

An nint representing the native library handle.

Type Parameters

T

A type from the assembly used to probe locations alongside the managed assembly.

Exceptions

DllNotFoundException

Thrown when the library cannot be loaded by the platform loader.