Difference between revisions of "Lua:getModuleSize"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
(Replaced content with '<span style="font-size:25px;color:red">Sorry! Content not available.</span>')
Line 1: Line 1:
[[Category:Lua]]
+
<span style="font-size:25px;color:red">Sorry! Content not available.</span>
'''function''' getModuleSize(''ModuleName'') ''':''' integer
 
 
 
Returns the size of a given module.
 
 
 
Tip: Use [[getAddress]] to get the base address.
 
 
 
 
 
=== Function Parameters ===
 
 
 
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
!align="left"|Parameter
 
!align="left"|Type
 
!style="width: 80%;background-color:white;" align="left"|Description
 
|-
 
|ModuleName
 
|string
 
|The module name to get the size of
 
|}
 
 
 
 
 
== 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
 
 
 
== See also ==
 
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
 
 
=== Related Functions ===
 
* [[Lua:getAddress|getAddress]]
 
* [[Lua:getSymbolInfo|getSymbolInfo]]
 
* [[Lua:getProcesslist|getProcesslist]]
 
* [[Lua:reinitializeSymbolhandler|reinitializeSymbolhandler]]
 
* [[Lua:reinitializeDotNetSymbolhandler|reinitializeDotNetSymbolhandler]]
 

Revision as of 16:13, 16 March 2019

Sorry! Content not available.