Lua:generateAPIHookScript

From Cheat Engine
Revision as of 00:16, 25 January 2018 by TheyCallMeTim13 (talk | contribs) (moved generateAPIHookScript to Lua:generateAPIHookScript)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function generateAPIHookScript(AddressToHook, AddressToJumpTo, AddressToStoreNewCallAddress OPTIONAL)

Returns an autoassemble script that when executed hooks the specific address and optionally writes an 'OriginalCall' stub and writes the address of that functionat the specified address.

Function Parameters

Parameter Type Description
AddressToHook CEAddressString The address to hook
AddressToJumpTo CEAddressString The address that the hook should jump to
AddressToStoreNewCallAddress CEAddressString Optional parameter. When provided it will write a routine that the hook code can use to call the original function


See also