Sign in Join
FPDoc Onlineexperiment

SafeLoadLibrary function

In unit sysutils

Load a library safely.

Declaration

pascal
function SafeLoadLibrary(const FileName: AnsiString; ErrorMode: DWord=0)
: HMODULE

Description

SafeLoadLibrary saves and restores some registers before and after issuing a call to LoadLibrary.

Errors

None.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.