편집

다음을 통해 공유


Dlfcn.GetIntPtr(IntPtr, String) Method

Definition

Gets the IntPtr value exposed with the given symbol from the dynamic library.

public static IntPtr GetIntPtr (IntPtr handle, string symbol);
static member GetIntPtr : nativeint * string -> nativeint

Parameters

handle
IntPtr

nativeint

Handle to the dynamic library previously opened with dlopen(String, Int32).

symbol
String

Name of the public symbol in the dynamic library to look up.

Returns

IntPtr

nativeint

The value from the library, or IntPtr.Zero on failure.

Remarks

If this routine fails, it will return IntPtr.Zero.

Applies to