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

Method GetProcessName

Source/Client/NM_Engine/ProcessFunctions.cpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206std::string CProcessFunctions::GetProcessName(HANDLE hProcess)
207{
208 auto szDosName = GetProcessFullName(hProcess);
209 if (szDosName.empty()) return std::string("");
210
211 auto szProcessName = DosDevicePath2LogicalPath(szDosName.c_str());
212 if (szProcessName.empty()) return std::string("");
213
214 std::transform(szProcessName.begin(), szProcessName.end(), szProcessName.begin(), tolower);
215 return szProcessName;
216}
217
218DWORD_PTR CProcessFunctions::GetProcessIdNative(HANDLE hProcess)
219{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected