NativeLibrary.GetExport(IntPtr, String) Método

Definición

Obtiene la dirección de un símbolo exportado.

public:
 static IntPtr GetExport(IntPtr handle, System::String ^ name);
public static IntPtr GetExport (IntPtr handle, string name);
static member GetExport : nativeint * string -> nativeint
Public Shared Function GetExport (handle As IntPtr, name As String) As IntPtr

Parámetros

handle
IntPtr

nativeint

El identificador de sistema operativo de la biblioteca nativa.

name
String

Nombre del símbolo exportado.

Devoluciones

IntPtr

nativeint

Dirección del símbolo.

Excepciones

handle es Zero o bien name es null.

No se encontró el símbolo.

Comentarios

Se trata de un contenedor sencillo en torno a las llamadas del sistema operativo y no realiza ningún control de nombres.

Llamar a este método con un parámetro no válido handle distinto IntPtr.Zero de no se admite y dará como resultado un comportamiento indefinido.

Se aplica a