| 191 | |
| 192 | |
| 193 | std::string CProcessFunctions::GetProcessFullName(HANDLE hProcess) |
| 194 | { |
| 195 | CHAR processPath[MAX_PATH] = { 0 }; |
| 196 | if (g_winapiApiTable->GetProcessImageFileNameA(hProcess, processPath, _countof(processPath))) |
| 197 | return processPath; |
| 198 | |
| 199 | memset(&processPath, 0, MAX_PATH); |
| 200 | if (g_winapiApiTable->GetModuleFileNameExA(hProcess, NULL, processPath, _countof(processPath))) |
| 201 | return processPath; |
| 202 | |
| 203 | return std::string(""); |
| 204 | } |
| 205 | |
| 206 | std::string CProcessFunctions::GetProcessName(HANDLE hProcess) |
| 207 | { |
nothing calls this directly
no outgoing calls
no test coverage detected