How to rename a vtable function #3035
-
Beta Was this translation helpful? Give feedback.
Answered by
CouleeApps
Mar 22, 2022
Replies: 1 comment 1 reply
-
Chances are, your vtable is defined as a pointer to a structure containing function pointers. You will need two structures: one for the vtable and one for the object. In the object structure, the first member should be a pointer to a vtable structure. In the vtable structure, you should define function pointers at the offsets where they are used. In your example, it would probably look like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wjllz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chances are, your vtable is defined as a pointer to a structure containing function pointers. You will need two structures: one for the vtable and one for the object. In the object structure, the first member should be a pointer to a vtable structure. In the vtable structure, you should define function pointers at the offsets where they are used.
In your example, it would probably look like this: