MEMORY
GetProc
Resolves an exported symbol inside a module.
Syntax
local address = ONYX.Memory.GetProc(module, procName)Parameters
module(string) — Module name, e.g. "kernel32.dll".procName(string) — Export name, e.g. "GetTickCount64".
Return(s)
integer — function address, or nil when the module or export cannot be resolved.
Behavior
- Walks the module PE export table manually instead of calling GetProcAddress.
Example(s)
local proc = ONYX.Memory.GetProc("kernel32.dll", "GetTickCount64")
local tick = ONYX.Memory.Call(proc, "l:")