แก้ไข

แชร์ผ่าน


NativeLibrary.GetExport(IntPtr, String) Method

Definition

Gets the address of an exported symbol.

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

Parameters

handle
IntPtr

nativeint

The native library OS handle.

name
String

The name of the exported symbol.

Returns

IntPtr

nativeint

The address of the symbol.

Exceptions

handle is Zero or name is null.

The symbol is not found.

Remarks

This is a simple wrapper around OS calls and does not perform any name mangling.

Calling this method with an invalid handle parameter other than IntPtr.Zero is not supported and will result in undefined behaviour.

Applies to