Please help
Dear Qmo or someone who know,
I have try your code. The compilation fine. But I get crash after the dll injected to D3D9test.
The crash is in ProtectHook function. I try to understand the code but my two cents T T.
Could you please give me an advice how to fix the issue or explain me more workflow of detouring function?
Thanks,
PS