Skip to content

TDynLibsManager

Dynamic library loading support

Declaration

Source position: dynlibh.inc line 40

Type
TDynLibsManager = record
public
  LoadLibraryU : TLoadLibraryUHandler;
  LoadLibraryA : TLoadLibraryAHandler;
  GetProcAddress : TGetProcAddressHandler;
  GetProcAddressOrdinal : TGetProcAddressOrdinalHandler;
  UnloadLibrary : TUnloadLibraryHandler;
  GetLoadErrorStr : TGetLoadErrorStrHandler;
end

Description

TDynLibsManager contains all the callbacks needed to load and manage dynamic libraries. The system unit does not contain dynamic loading library support on all supported platforms. Like the unicode string support, heap support and thread support, support for loading dnamic libraries is pluggable. This record contains the necessary callbacks that the system unit needs to implement loading of dynamic libraries (needed for example for run-time package support).

Including the dynlibs unit will enable support for dynamically loadable libraries on all platforms that support this.

See also

Name Description
#rtl.dynlibs Cross-platform support for dynamically loadable libraries
TGetLoadErrorStrHandler Get last load error description string handler type
TGetProcAddressHandler Get procedure address handler type
TGetProcAddressOrdinalHandler Get procdure address by ordinal handler type
TLoadLibraryAHandler >Load library (ansistring) handler type
TLoadLibraryUHandler Load library (unicode) handler type
TUnloadLibraryHandler Unload library handler type