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

Method CompareItems

WinArk/IoTimerTable.cpp:176–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected