<?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%3AgetSymbolInfo</id>
	<title>Lua:getSymbolInfo - 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%3AgetSymbolInfo"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:getSymbolInfo&amp;action=history"/>
	<updated>2026-06-22T09:15:31Z</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:getSymbolInfo&amp;diff=7937&amp;oldid=prev</id>
		<title>Leunsel: Created page with &quot;Category:Lua {{CodeBox|'''function''' getSymbolInfo(''symbolname'') ''':''' table}}  Returns information about the specified symbol.  The returned table is defined by the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:getSymbolInfo&amp;diff=7937&amp;oldid=prev"/>
		<updated>2026-06-21T04:16:12Z</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; getSymbolInfo(&amp;#039;&amp;#039;symbolname&amp;#039;&amp;#039;) &amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039; table}}  Returns information about the specified symbol.  The returned table is defined by the...&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''' getSymbolInfo(''symbolname'') ''':''' table}}&lt;br /&gt;
&lt;br /&gt;
Returns information about the specified symbol.&lt;br /&gt;
&lt;br /&gt;
The returned table is defined by the SymbolList class object and can contain information such as the module name, search key, address, and size.&lt;br /&gt;
&lt;br /&gt;
Some fields, such as ''size'', may be nil depending on the resolved symbol.&lt;br /&gt;
&lt;br /&gt;
===Function Parameters===&lt;br /&gt;
{|width=&amp;quot;85%&amp;quot; cellpadding=&amp;quot;10%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Parameter&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Type&lt;br /&gt;
!style=&amp;quot;width: 80%;background-color:white;&amp;quot; align=&amp;quot;left&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|symbolname&lt;br /&gt;
|String&lt;br /&gt;
|The name of the symbol to retrieve information for.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
table — A table containing information about the specified symbol.&lt;br /&gt;
&lt;br /&gt;
===Return Table Fields===&lt;br /&gt;
{|width=&amp;quot;85%&amp;quot; cellpadding=&amp;quot;10%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Field&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Type&lt;br /&gt;
!style=&amp;quot;width: 80%;background-color:white;&amp;quot; align=&amp;quot;left&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|modulename&lt;br /&gt;
|String&lt;br /&gt;
|The name of the module the symbol belongs to.&lt;br /&gt;
|-&lt;br /&gt;
|searchkey&lt;br /&gt;
|String&lt;br /&gt;
|The search key associated with the symbol.&lt;br /&gt;
|-&lt;br /&gt;
|address&lt;br /&gt;
|Integer&lt;br /&gt;
|The resolved address of the symbol.&lt;br /&gt;
|-&lt;br /&gt;
|size&lt;br /&gt;
|Integer or nil&lt;br /&gt;
|The size associated with the symbol. This field may be nil if no size is available.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local info = getSymbolInfo(&amp;quot;KERNEL32.AddAtomA&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
if info ~= nil then&lt;br /&gt;
  print(&amp;quot;Module name: &amp;quot; .. tostring(info.modulename))&lt;br /&gt;
  print(&amp;quot;Search key: &amp;quot; .. tostring(info.searchkey))&lt;br /&gt;
&lt;br /&gt;
  if info.address ~= nil then&lt;br /&gt;
    print(&amp;quot;Address: &amp;quot; .. string.format(&amp;quot;%X&amp;quot;, info.address))&lt;br /&gt;
  else&lt;br /&gt;
    print(&amp;quot;Address: nil&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  print(&amp;quot;Size: &amp;quot; .. tostring(info.size))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{LuaSeeAlso}}&lt;/div&gt;</summary>
		<author><name>Leunsel</name></author>
		
	</entry>
</feed>