Difference between revisions of "Lua:generateAPIHookScript"
Jump to navigation
Jump to search
(Created page with ''''function''' generateAPIHookScript(''AddressToHook'', ''AddressToJumpTo'', ''AddressToStoreNewCallAddress'' OPTIONAL) Returns an autoassemble script that when executed hooks t…') |
m (moved generateAPIHookScript to Lua:generateAPIHookScript) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Lua]] | ||
'''function''' generateAPIHookScript(''AddressToHook'', ''AddressToJumpTo'', ''AddressToStoreNewCallAddress'' OPTIONAL) | '''function''' generateAPIHookScript(''AddressToHook'', ''AddressToJumpTo'', ''AddressToStoreNewCallAddress'' OPTIONAL) | ||
Line 23: | Line 24: | ||
− | + | {{LuaSeeAlso}} | |
− | |||
− |
Latest revision as of 00:16, 25 January 2018
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[edit]
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 |