# Function Reference

# _WinAPI_LoadLibrary

Maps a specified executable module into the address space of the calling process

#include <WinAPIRes.au3>
_WinAPI_LoadLibrary ( $sFileName )

## Parameters

$sFileName | Names a Win32 executable module (either a .dll or an .exe file). The name specified is the filename of the executable module.

## Return Value

Success: | A handle to the executable module
Failure: | 0, call _WinAPI_GetLastError() to get extended error information

## Related

_WinAPI_FreeLibrary, _WinAPI_LoadLibraryEx

## See Also

Search LoadLibrary in MSDN Library.