开发者

C++ filtering debug events

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜