MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnConfigFilters

Method OnConfigFilters

WinArk/EtwView.cpp:657–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657LRESULT CEtwView::OnConfigFilters(WORD, WORD, HWND, BOOL&) {
658 CFiltersDlg dlg(m_FilterConfig);
659 if (dlg.DoModal() == IDOK) {
660 // update filters
661 auto& tm = GetFrame()->GetTraceManager();
662 auto paused = tm.IsRunning() && tm.IsPaused();
663 if (!paused)
664 tm.Pause(true);
665 ApplyFilters(m_FilterConfig);
666 if (!paused)
667 tm.Pause(false);
668 }
669 return 0;
670}
671
672LRESULT CEtwView::OnItemChanged(int, LPNMHDR, BOOL&) {
673 UpdateUI();

Callers

nothing calls this directly

Calls 3

IsPausedMethod · 0.80
IsRunningMethod · 0.45
PauseMethod · 0.45

Tested by

no test coverage detected