microsoft / Detours

Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
MIT License
5.18k stars 1k forks source link

Feature request: Add support for PDB files #203

Closed CaledoniaProject closed 3 years ago

CaledoniaProject commented 3 years ago

I need to hook non-exported methods with detours. The symbol name is available in PDB files, can you add support for that?

sylveon commented 3 years ago

You can use the DIA SDK to find the RVA of the non-exported method and then derive the real address to pass to DetourAttach from the HMODULE, Detours doesn't need special support for this.

CaledoniaProject commented 3 years ago

Ah, Make sense.