开发者

Windows: Attach to process and read debug output

开发者 https://www.devze.com 2023-03-31 09:49 出处:网络
How c开发者_如何学运维an I attach to another process using WinAPI? I want to read its OutputDebugStrings and be able to pause its execution.You need to write a debugger with the WaitForDebugEvent() ap

How c开发者_如何学运维an I attach to another process using WinAPI? I want to read its OutputDebugStrings and be able to pause its execution.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消