r/cpp • • Apr 13 '26

The Global API Injection Pattern

https://www.elbeno.com/blog/?p=1831
63 Upvotes

17 comments sorted by

View all comments

Show parent comment

5

u/IAMARedPanda Apr 13 '26

x64 actually simplifies things. Otherwise for x86 you need to use __fastcall and capture the this pointer in the correct register (ecx I think).