Skip to content

SafeLoadLibrary

Load a library safely

Declaration

Source position: dynlibh.inc line 49

  function SafeLoadLibrary(const Name: RawByteString) : TLibHandle;
  function SafeLoadLibrary(const Name: UnicodeString) : TLibHandle;

Description

SafeLoadLibrary calls LoadLibrary but restores the current FPU control word and exception mask to their current value after the library was loaded, thus preventing the loaded library initialization code from modifying their current values.

See also

Name Description
LoadLibrary Load a dynamic library and return a handle to it.