| 88 | } |
| 89 | |
| 90 | DWORD ProcessInfo::GetUid(DWORD processId, const std::wstring& processName) |
| 91 | { |
| 92 | for (auto& item : m_processProperties) |
| 93 | { |
| 94 | if (item.second.pid == processId && item.second.name == processName) |
| 95 | return item.first; |
| 96 | } |
| 97 | |
| 98 | DWORD index = m_unqiueId; |
| 99 | ++m_unqiueId; |
| 100 | |
| 101 | m_processProperties[index] = InternalProcessProperties(processId, processName, GetRandomProcessColor()); |
| 102 | return index; |
| 103 | } |
| 104 | |
| 105 | ProcessProperties ProcessInfo::GetProcessProperties(DWORD processId, const std::wstring& processName) |
| 106 | { |
nothing calls this directly
no test coverage detected