NativeLibrary Classe
Definizione
Offre API per la gestione delle librerie native.Provides APIs for managing native libraries.
public ref class NativeLibrary abstract sealed
public static class NativeLibrary
type NativeLibrary = class
Public Class NativeLibrary
- Ereditarietà
-
NativeLibrary
Metodi
Free(IntPtr) |
Libera una libreria caricata con l'handle del sistema operativo specificato oppure non esegue azioni se l'handle di input è Zero.Frees a loaded library with the specified OS handle, or takes no action if the input handle is Zero. |
GetExport(IntPtr, String) |
Ottiene l'indirizzo di un simbolo esportato.Gets the address of an exported symbol. |
Load(String) |
Offre una semplice API per il caricamento di una libreria nativa che esegue il wrapping del caricatore del sistema operativo e usa i flag predefiniti.Provides a simple API for loading a native library that wraps the OS loader and uses default flags. |
Load(String, Assembly, Nullable<DllImportSearchPath>) |
Offre un'API avanzata per il caricamento di una libreria nativa.Provides a high-level API for loading a native library. |
SetDllImportResolver(Assembly, DllImportResolver) |
Imposta un callback per la risoluzione di importazioni di librerie native da un assembly.Sets a callback for resolving native library imports from an assembly. |
TryGetExport(IntPtr, String, IntPtr) |
Ottiene l'indirizzo di un simbolo esportato e restituisce un valore che indica se la chiamata al metodo ha avuto esito positivo.Gets the address of an exported symbol and returns a value that indicates whether the method call succeeded. |
TryLoad(String, Assembly, Nullable<DllImportSearchPath>, IntPtr) |
Offre un'API avanzata per il caricamento di una libreria nativa e restituisce un valore che indica se l'operazione ha avuto esito positivo.Provides a high-level API that loads a native library and returns a value that indicates whether the operation succeeded. |
TryLoad(String, IntPtr) |
Offre una semplice API per il caricamento di una libreria nativa e restituisce un valore che indica se l'operazione ha avuto esito positivo.Provides a simple API for loading a native library and returns a value that indicates whether the operation succeeded. |