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

Method GetColumnTextPointer

WinArk/EtwView.cpp:142–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142PCWSTR 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
158bool CEtwView::OnRightClickList(HWND, int index, int col, POINT& pt) {
159 if (index >= 0) {

Callers

nothing calls this directly

Calls 2

GetProcessorNumberMethod · 0.80
GetProcessNameMethod · 0.45

Tested by

no test coverage detected