Reputation: 87
How can I attach to another process using WinAPI? I want to read its OutputDebugStrings and be able to pause its execution.
Upvotes: 1
Views: 919
Reputation: 941407
You need to write a debugger with the WaitForDebugEvent() api function. DEBUG_EVENT.DebugString supplies the text generated with OutputDebugString(). This SDK article is a good starting point for getting this going.
Upvotes: 4