Lua:enumMemoryRegions
Revision as of 18:40, 17 January 2026 by TheIndra (talk | contribs) (Created page with "Category:Lua {{CodeBox|'''function''' enumMemoryRegions() ''':''' table}} Returns a table containing the memory layout with information about each memory region. ===Func...")
| <> Function function enumMemoryRegions() : table |
Returns a table containing the memory layout with information about each memory region.
Function Parameters[edit]
<none>
Returns[edit]
Table — A table with the following fields:
- BaseAddress — Integer representing the base address of the region
- AllocationBase — Integer representing the base address of the range
- AllocationProtect — Integer representing the protection when the region was initially allocated
- RegionSize — Integer representing the size of the region
- State — Integer representing the state of the pages in the region
- Protect — Integer representing the protection of the pages in the region
- Type — Integer representing type of pages in the region
See MSDN MEMORY_BASIC_INFORMATION
Examples[edit]
for i, region in ipairs(enumMemoryRegions()) do
print(string.format("%X, %X", region.BaseAddress, region.RegionSize))
end
See also[edit]
| Lua |
| Script Engine |