Lua:getModuleSize

From Cheat Engine
Revision as of 15:09, 18 March 2019 by Dark Byte (talk | contribs) (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function getModuleSize(ModuleName) : integer

Returns the size of a given module.

Tip: Use getAddress to get the base address.


Function Parameters[edit]

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


Examples[edit]

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 

See also[edit]

Related Functions[edit]