microsoft / Detours

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

don't break stack walking #308

Open jdu2600 opened 8 months ago

jdu2600 commented 8 months ago

Detouring a function should not break our ability to walk the call stack.

On X64, suggest that we require the Detour to reside in MEM_IMAGE so that Windows has access to the compiler generated function information necessary for unwinding. This will prevent surprises.