| 272 | } |
| 273 | |
| 274 | std::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 | |
| 290 | std::string CThread::GetThreadOwnerFileName() |
| 291 | { |