Table of Contents

Method TryOpenLibrary

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

TryOpenLibrary(string?, out nint)

Try to open a given library and get its handle.
public static bool TryOpenLibrary(string? name, out nint libraryPtr)

Parameters

name string
The library name.
libraryPtr nint
The library handle.

Returns

bool
true if the library was opened successfully; false if an error ocurred.

Remarks

Passing null to name will get the entrypoint module's handle.