| 140 | } |
| 141 | |
| 142 | PCWSTR CEtwView::GetColumnTextPointer(HWND, int row, int col) const { |
| 143 | auto item = m_Events[row].get(); |
| 144 | switch (col) |
| 145 | { |
| 146 | case 2: return item->GetEventName().c_str(); |
| 147 | case 4: |
| 148 | if (item->GetEventName() == L"PerfInfo/SysClEnter") { |
| 149 | DWORD tid = _threadById[item->GetProcessorNumber()]; |
| 150 | DWORD pid = _processById[tid]; |
| 151 | return _processNameById[pid].c_str(); |
| 152 | } |
| 153 | return item->GetProcessName().c_str(); |
| 154 | } |
| 155 | return nullptr; |
| 156 | } |
| 157 | |
| 158 | bool CEtwView::OnRightClickList(HWND, int index, int col, POINT& pt) { |
| 159 | if (index >= 0) { |
nothing calls this directly
no test coverage detected