Uredi

Deli z drugimi prek


NativeLibrary Class

Definition

Provides APIs for managing native libraries.

public ref class NativeLibrary abstract sealed
public static class NativeLibrary
type NativeLibrary = class
Public Class NativeLibrary
Inheritance
NativeLibrary

Methods

Free(IntPtr)

Frees a loaded library with the specified OS handle, or takes no action if the input handle is Zero.

GetExport(IntPtr, String)

Gets the address of an exported symbol.

GetMainProgramHandle()

Get a handle that can be used with GetExport(IntPtr, String) or TryGetExport(IntPtr, String, IntPtr) to resolve exports from the entry point module.

Load(String, Assembly, Nullable<DllImportSearchPath>)

Provides a high-level API for loading a native library.

Load(String)

Provides a simple API for loading a native library that wraps the OS loader and uses default flags.

SetDllImportResolver(Assembly, DllImportResolver)

Sets a callback for resolving native library imports from an assembly.

TryGetExport(IntPtr, String, IntPtr)

Gets the address of an exported symbol and returns a value that indicates whether the method call succeeded.

TryLoad(String, Assembly, Nullable<DllImportSearchPath>, IntPtr)

Provides a high-level API that loads a native library and returns a value that indicates whether the operation succeeded.

TryLoad(String, IntPtr)

Provides a simple API for loading a native library and returns a value that indicates whether the operation succeeded.

Applies to