[Overview][Constants][Types][Procedures and functions] Reference for unit 'dynlibs' (#rtl)

GetProcedureAddress

Get the address of a procedure or symbol in a dynamic library.

Declaration

Source position: dynlibs.pp line 36

function GetProcedureAddress(

  Lib: TLibHandle;

  ProcName: AnsiString

):Pointer;

Description

GetProcedureAddressreturns a pointer to the location in memory of the symbol ProcNamein the dynamically loaded library specified by it's handle lib. If the symbol cannot be found or the handle is invalid, Nilis returned.

On Windows, only an exported procedure or function can be searched this way. On Unix platforms the location of any exported symbol can be retrieved this way.

Errors

If the symbol cannot be found, Nilis returned.

See also

LoadLibrary

  

Load a dynamic library and return a handle to it.

UnLoadLibrary

  

Unload a previously loaded library