JCL Help:LoadModuleEx

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Loads the dynamic module (DLL) from file FileName.


Pascal

 function LoadModuleEx(var Module: TModuleHandle; FileName: string; Flags: Cardinal): Boolean;


Parameters

Parameters Description
var Module: TModuleHandle Receives the handle of the loaded module.
FileName: string File name of the module to load.
Flags: Cardinal Additional loading flags.


Description

The dynamic module (DLL) is loaded into memory and its initialization code is executed if the flags allow that. This is an OS independent replacement for LoadLibraryEx. Flags are OS dependent. For Windows its the flags of LoadLibraryEx. The function does nothing but reports success if Module is not initialized to INVALID_MODULEHANDLE_VALUE to prevent multiple loads.


See Also

LoadModule UnloadModule


About

Unit

JclSysUtils


Donator

Robert Marquardt


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page