JCL Help:LoadModule

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Loads the dynamic module (DLL) from file FileName.


Pascal

 function LoadModule(var Module: TModuleHandle; FileName: string): Boolean;


Parameters

Parameters Description
var Module: TModuleHandle Receives the handle of the loaded module.
FileName: string File name of the module to load.


Return Value

The function returns True if the module could be loaded False otherwise.


Description

The dynamic module (DLL) is loaded into memory and its initialization code is executed. This is an OS independent replacement for LoadLibrary. The function does nothing but reports success if Module is not initialized to INVALID_MODULEHANDLE_VALUE to prevent multiple loads.


See Also

LoadModuleEx 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