<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Lua%3AenumMemoryRegions</id>
	<title>Lua:enumMemoryRegions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Lua%3AenumMemoryRegions"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:enumMemoryRegions&amp;action=history"/>
	<updated>2026-04-23T07:38:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.cheatengine.org/index.php?title=Lua:enumMemoryRegions&amp;diff=7904&amp;oldid=prev</id>
		<title>TheIndra: Created page with &quot;Category:Lua {{CodeBox|'''function''' enumMemoryRegions() ''':''' table}}  Returns a table containing the memory layout with information about each memory region.  ===Func...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:enumMemoryRegions&amp;diff=7904&amp;oldid=prev"/>
		<updated>2026-01-17T18:40:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:Lua&quot; title=&quot;Category:Lua&quot;&gt;Category:Lua&lt;/a&gt; {{CodeBox|&amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039; enumMemoryRegions() &amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039; table}}  Returns a table containing the memory layout with information about each memory region.  ===Func...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Lua]]&lt;br /&gt;
{{CodeBox|'''function''' enumMemoryRegions() ''':''' table}}&lt;br /&gt;
&lt;br /&gt;
Returns a table containing the memory layout with information about each memory region.&lt;br /&gt;
&lt;br /&gt;
===Function Parameters===&lt;br /&gt;
&amp;lt;none&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Table — A table with the following fields:&lt;br /&gt;
&lt;br /&gt;
* '''BaseAddress''' — Integer representing the base address of the region&lt;br /&gt;
* '''AllocationBase''' — Integer representing the base address of the range&lt;br /&gt;
* '''AllocationProtect''' — Integer representing the protection when the region was initially allocated&lt;br /&gt;
* '''RegionSize''' — Integer representing the size of the region&lt;br /&gt;
* '''State''' — Integer representing the state of the pages in the region&lt;br /&gt;
* '''Protect''' — Integer representing the protection of the pages in the region&lt;br /&gt;
* '''Type''' — Integer representing type of pages in the region&lt;br /&gt;
&lt;br /&gt;
See [https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-memory_basic_information MSDN MEMORY_BASIC_INFORMATION]&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i, region in ipairs(enumMemoryRegions()) do&lt;br /&gt;
  print(string.format(&amp;quot;%X, %X&amp;quot;, region.BaseAddress, region.RegionSize))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{LuaSeeAlso}}&lt;br /&gt;
&lt;br /&gt;
{{Process}}&lt;/div&gt;</summary>
		<author><name>TheIndra</name></author>
		
	</entry>
</feed>