| 30 | } |
| 31 | |
| 32 | int EventsConfiguration::RemoveAdvanced(bool advanced) { |
| 33 | auto it = std::remove_if(_categories.begin(), _categories.end(), [&](const auto& cat) { |
| 34 | return KernelEventCategory::GetCategory(cat.Name.c_str())->Advanced == advanced; |
| 35 | }); |
| 36 | _categories.erase(it, _categories.end()); |
| 37 | |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | bool EventsConfiguration::Save(PCWSTR path) { |
| 42 | ::DeleteFile(path); |
no test coverage detected