NativeLibrary.GetExport(IntPtr, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.