local results = gg.getResults(gg.getResultsCount())
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchPointer(0)
local results_pointers = gg.getResults(gg.getResultsCount()) -- this will have the all the pointers of all the searched values.
--[[ Note:
gg.searchPointer()
mixed searchPointer ( int maxOffset,
long memoryFrom = 0,
long memoryTo = -1,
long limit = 0
)
Searches for values that may be pointers to elements of the current search result.
Parameters
maxOffset Maximum offset for pointers. Valid values: 0 - 65535.
memoryFrom Start memory address for the search.
memoryTo End memory address for the search.
limit Stopping the search after finding the specified number of results. 0 means to search all results.
**Returns**
true or string with error.
Examples:
gg.searchNumber('10', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5) -- search some values
gg.searchPointer(512) -- search for possible pointers to values finded before
gg.searchNumber('10', gg.TYPE_DWORD) -- search some values
gg.loadResults(gg.getResults(5))
gg.searchPointer(512) -- search for possible pointers to values loaded before
local t = {}
t[1] = {}
t[1].address = 0x18004030 -- some desired address
t[1].flags = gg.TYPE_DWORD
t[2] = {}
t[2].address = 0x18004040 -- another desired address
t[2].flags = gg.TYPE_BYTE
gg.loadResults(t)
gg.searchPointer(512) -- search for possible pointers to values loaded before