How to get function offset?

0

How can I get function offset? I found MexScript code, which returns function offset from compiled .dll library.

findloc OFFSET binary "\x10\x31\x00\x00\x00"
math OFFSET + 5
math OFFSET + 0xa0
goto OFFSET
get funcoff long
math funcoff - 0x10000000
print "Offset %funcoff|x%"

Offset is 0x0001a6a0 which is good. So what is \x10\x31\x00\x00\x00? How does it work? How can I do this in C++?

c++
mex
asked on Stack Overflow May 24, 2019 by FileEX • edited May 24, 2019 by Jonathan Leffler

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0