JCL Help:WriteModuleData
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: WriteModuleData Function
Search in JCL Help
Search in all projects
Summary
Writes the data of an exported variable.
Pascal
function WriteModuleData(Module: TModuleHandle; SymbolName: string; var Buffer; Size: Cardinal): Boolean;
Parameters
Parameters | Description |
Module: TModuleHandle | Handle to the loaded module. |
SymbolName: string | Name of the exported variable to access. |
var Buffer | The untyped source of the copy. |
Size: Cardinal | Amount of bytes to copy. |
Description
WriteModuleData copies the contents of Buffer to the exported variable SymbolName. Size tells the amount of bytes to be copied. This function allows to set variables in dynamic modules which are not directly accessible in Pascal. BEWARE! You are accessing the DLL memory image directly. Be sure to access a variable not a function and be sure to write the correct amount of data. The changes are not persistent. They get lost when the DLL is unloaded.
See Also
About
Unit
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