| 79 | } |
| 80 | |
| 81 | std::wstring ProcessInfo::GetProcessNameByPid(DWORD processId) |
| 82 | { |
| 83 | Win32::Handle hProcess(::OpenProcess(PROCESS_QUERY_INFORMATION, false, processId)); |
| 84 | if (hProcess) |
| 85 | return GetProcessName(hProcess.get()); |
| 86 | |
| 87 | return L""; |
| 88 | } |
| 89 | |
| 90 | DWORD ProcessInfo::GetUid(DWORD processId, const std::wstring& processName) |
| 91 | { |
nothing calls this directly
no test coverage detected