Difference between revisions of "Lua:getModuleSize"
Jump to navigation
Jump to search
m (Syntax Highlighting.) |
m (Added related function template.) |
||
| Line 32: | Line 32: | ||
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| − | + | {{Address}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 22:52, 26 June 2026
Returns the size of the given module.
Use getAddress with the module name to retrieve the module's base address.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| modulename | String | The name of the module to get the size of. |
Returns[edit]
integer — The size of the given module in bytes.
Examples[edit]
1 local moduleName = "KERNEL32.dll"
2 local moduleBase = getAddress(moduleName)
3 local moduleSize = getModuleSize(moduleName)
4
5 printf("Module base: %X", moduleBase)
6 printf("Module size: 0x%X", moduleSize)