Closed djn3m0 closed 11 months ago
You need to use something else to find the address, for example the DIA API with PDB symbols, or hardcoding a raw offset, etc.
Then once you have a function pointer, you should be able to use Detours as usual.
I'm not familiar with DIA Api and googling brings up some unrelated stuff, can you please provide link or some documentation?
thanks
You can also use a tool like Ghidra or IDA to find the address of the function you want to hook.
You can then:
GetModuleHandleA
)Yes, that would be hardcoding a raw offset
Thanks it was very helpful
Hello,
I need to hook a function inside a .exe file, there is no symbol that I can resolve or it's not exported like in .dlls. What is the right way of hooking unexported functions inside a .exe file?
I would appreciate if you can point me to any code or sample.
Thanks