Is there some way to track every single function call happening in my app at run-time? So even if I were to open my app in a debugger and add a call instruction, I could catch that too?
One way I could think of is putting a page guard on the .text portion of my program and inside a vectored exception handler I check if the next instruction is a call instruction and set a single step flag if so, but I am not sure if I could even do that without either breaking my program or just making it incredibly slow with all the virtualprotect calls.
So is my idea somehow do-able or is there some other way to do it?