| 174 | } |
| 175 | |
| 176 | bool CIoTimerTable::CompareItems(const std::shared_ptr<IoTimerInfo>& p1, const std::shared_ptr<IoTimerInfo>& p2, int col, bool asc) { |
| 177 | switch (static_cast<Column>(col)) { |
| 178 | case Column::CompanyName: |
| 179 | { |
| 180 | std::string path = Helpers::GetKernelModuleByAddress((ULONG_PTR)p1->TimerRoutine); |
| 181 | std::wstring name1 = FileVersionInfoHelpers::GetCompanyName(Helpers::StringToWstring(path)); |
| 182 | path = Helpers::GetKernelModuleByAddress((ULONG_PTR)p2->TimerRoutine); |
| 183 | std::wstring name2 = FileVersionInfoHelpers::GetCompanyName(Helpers::StringToWstring(path)); |
| 184 | return SortHelper::SortStrings(name1, name2, asc); |
| 185 | } |
| 186 | } |
| 187 | return false; |
| 188 | } |
nothing calls this directly
no outgoing calls
no test coverage detected