语言

NativeLibrary.GetExport(IntPtr, String) 方法

定义

获取导出的符号的地址。

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

参数

handle
IntPtr

nativeint

本机库 OS 句柄。

name
String

导出的符号的名称。

返回

IntPtr

nativeint

符号的地址。

例外

handle 是 Zero 或 name 为 null。

找不到符号。

注解

这是关于 OS 调用的简单包装器,不执行任何名称混乱。

不支持使用无效 handle 参数 IntPtr.Zero 调用此方法,将导致未定义的行为。

适用于