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

Method GetThreadOwnerFullName

Source/Client/NM_Engine/ThreadHelper.cpp:274–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274std::string CThread::GetThreadOwnerFullName()
275{
276 auto dwStartAddress = GetStartAddress();
277 if (!dwStartAddress)
278 return std::string("");
279
280 char cFileName[2048] = { 0 };
281 if (!g_winapiApiTable->GetMappedFileNameA(NtCurrentProcess, (LPVOID)dwStartAddress, cFileName, 2048))
282 return std::string("");
283
284 std::string szFileName = cFileName;
285 std::transform(szFileName.begin(), szFileName.end(), szFileName.begin(), tolower);
286
287 return szFileName;
288}
289
290std::string CThread::GetThreadOwnerFileName()
291{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected