Lua:getModuleSize

From Cheat Engine
Revision as of 05:34, 10 March 2017 by TheyCallMeTim13 (talk | contribs) (Created page with ''''function''' getModuleSize(''ModuleName'') Returns the size of a given module. Tip: Use getAddress to get the base address. === Function Parameters === {|width="85%" c…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function getModuleSize(ModuleName)

Returns the size of a given module.

Tip: Use getAddress to get the base address.


Function Parameters

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


Examples

Code:

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

Output:

 0000000100000000 
 002D4000 
 00000001002D4000 

See also

Related Functions