[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'System' (#rtl)

# 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

LoadLibrary |  | Load a dynamic library and return a handle to it.

Documentation generated on: May 14 2021