getModuleSize

From Cheat Engine

Jump to: navigation, search

function getModuleSize(ModuleName) : integer

Returns the size of a given module.

Tip: Use getAddress to get the base address.


Contents

[edit] Function Parameters

Parameter Type Description
ModuleName string The module name to get the size of


[edit] Examples

Code:

 local procAddr = 'Tutorial-x86_64.exe'
 print(string.format('%016X', getAddress(procAddr)))
 print(string.format('        %08X', getModuleSize(procAddr)))
 print(string.format('%016X', getAddress(procAddr) + getModuleSize(procAddr)))

Output:

 0000000100000000 
         002D4000 
 00000001002D4000 

[edit] See also

[edit] Related Functions

Personal tools
Toolbox