Dynamic Vtable Index Recover
stevemk14ebr opened this issue · comments
Hey, your vtable hooks have hardcoded indices, you can recover these dynamically using this:
https://gist.github.com/stevemk14ebr/12d70ae90175e71194520e9bb0c5e1e5
Example of what I mean:
UniversalHookX/UniversalHookX/src/hooks/backend/dx12/hook_directx12.cpp
Lines 214 to 226 in 1e54967
i don't think windows will ever change the indexes but this is a good addition
I agree with you, you could use it to unify parts of the directx hooks across versions though.