NativeLibrary.TryGetExport(IntPtr, String, IntPtr) NativeLibrary.TryGetExport(IntPtr, String, IntPtr) NativeLibrary.TryGetExport(IntPtr, String, IntPtr) NativeLibrary.TryGetExport(IntPtr, String, IntPtr) Method

Definition

Gets the address of an exported symbol and returns a value that indicates whether the method call succeeded.

public:
 static bool TryGetExport(IntPtr handle, System::String ^ name, [Runtime::InteropServices::Out] IntPtr % address);
public static bool TryGetExport (IntPtr handle, string name, out IntPtr address);
static member TryGetExport : nativeint * string * nativeint -> bool
Public Shared Function TryGetExport (handle As IntPtr, name As String, ByRef address As IntPtr) As Boolean

Parameters

handle
IntPtr IntPtr IntPtr IntPtr

The native library OS handle.

name
String String String String

The name of the exported symbol.

address
IntPtr IntPtr IntPtr IntPtr

When the method returns, contains the symbol address, if it exists.

Returns

true if the method returned successfully; otherwise, false.

Exceptions

Applies to