GetProc

Get the address of an exported function from a module. Uses a manual PE export-table walk rather than GetProcAddress.

Syntax

Susano.Memory.GetProc(module, procName) -> integer | nil

Parameters

module (string): Module name, e.g. "kernel32.dll".

procName (string): Export name, e.g. "GetTickCount64".

Return(s)

integer: Function address, or nil if the module or export cannot be resolved.

Example(s)

local proc = Susano.Memory.GetProc("kernel32.dll", "GetTickCount64")
local tick = Susano.Memory.Call(proc, "l:")
print(tick)