MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / GetProcessFullName

Method GetProcessFullName

Source/Client/NM_Engine/ProcessFunctions.cpp:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192
193std::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
206std::string CProcessFunctions::GetProcessName(HANDLE hProcess)
207{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected