Idov
Idov

Reputation: 5124

C++ filtering debug events

Is there a built-in way in C++/Windows to filter events that WaitForDebugEvent captures? that WaitForDebugEvent will just ignore?

Upvotes: 1

Views: 211

Answers (2)

Hans Passant
Hans Passant

Reputation: 941455

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.

Upvotes: 1

Vikram.exe
Vikram.exe

Reputation: 4585

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.

Upvotes: 2

Related Questions