开发者

C++ filtering debug events

开发者 https://www.devze.com 2023-02-02 06:47 出处:网络
Is there a built-in way in C++/Windows to fil开发者_StackOverflowter events that WaitForDebugEvent captures?that WaitForDebugEvent will just ignore?No, I don\'t think you can filter any debug event. T

Is there a built-in way in C++/Windows to fil开发者_StackOverflowter events that WaitForDebugEvent captures? that WaitForDebugEvent will just ignore?


No, I don't think you can filter any debug event. The application calling WaitForDebugEvent will get all the events. You can, however ignore any particular event after receiving it in your application.


You have to call WaitForDebugEvent(), you do so in a loop. If you're not interested in the notification then simply ignore it. Just omit the case in your switch statement on DEBUG_EVENT.dwDebugEventCode. That's filtering it.

0

精彩评论

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