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 1.01k forks source link

hook __usercall functions #150

Closed luca2125 closed 3 years ago

luca2125 commented 3 years ago

Hi,

I ask if detours is tested with __usercall functions.

Thanks !

sonyps5201314 commented 3 years ago

Yes, it's OK. But saving and restoring registers and instruction alignment will be your own responsibility.

bgianfo commented 3 years ago

Closing this, as this question was already answered. Feel free to re-open an issue if you have more questions.