Robert
Robert

Reputation: 87

Windows: Attach to process and read debug output

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

Answers (1)

Hans Passant
Hans Passant

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

Related Questions