Originally Posted by
everdox
Hey guys, I got a question about this api, im a little new to windows programming so bear with me on this.
According to msdn this function can only be used by the thread that created the process being debugged. So assuming that, I went ahead and wrote in an int3 at the instruction I want to break at, my debugger loop picked it up, and I can then fill a CONTEXT structure and get what im looking for (including setting the EIP back one instruction)
my question though is, how can this be done without loading the process with createprocess, seeing as in per the api documentation, the only way to properly use WaitForDebug event is to write a loader with createprocess.
thanks.