Table of Contents

Method TryGetExport

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

TryGetExport(nint, string, out nint)

Get a pointer to an export from the given library.
public static bool TryGetExport(this nint libraryPtr, string name, out nint functionPtr)

Parameters

libraryPtr nint
The library handle.
name string
The function name.
functionPtr nint
The export pointer, or null if it wasn't found.

Returns

bool
true if the export was obtained successfully; false if an error ocurred.