Udostępnij przez


NativeLibrary.GetExport(IntPtr, String) Metoda

Definicja

Pobiera adres wyeksportowanego symbolu.

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

Parametry

handle
IntPtr

nativeint

Uchwyt systemu operacyjnego biblioteki natywnej.

name
String

Nazwa wyeksportowanego symbolu.

Zwraca

IntPtr

nativeint

Adres symbolu.

Wyjątki

handle jest lub Zeroname jest null.

Nie można odnaleźć symbolu.

Uwagi

Jest to prosta otoka wokół wywołań systemu operacyjnego i nie wykonuje żadnych mangling nazw.

Wywołanie tej metody z nieprawidłowym handle parametrem innym niż IntPtr.Zero nie jest obsługiwane i spowoduje niezdefiniowane zachowanie.

Dotyczy