| 532 | } |
| 533 | |
| 534 | std::string CFunctions::GetModuleOwnerName(LPVOID pModuleBase) |
| 535 | { |
| 536 | char cFileName[2048] = { 0 }; |
| 537 | if (!g_winapiApiTable->GetMappedFileNameA(NtCurrentProcess, pModuleBase, cFileName, 2048)) |
| 538 | return std::string(""); |
| 539 | |
| 540 | std::string szFileName = cFileName; |
| 541 | auto szRealName = CProcessFunctions::DosDevicePath2LogicalPath(cFileName); |
| 542 | if (szRealName.empty()) |
| 543 | return std::string(""); |
| 544 | |
| 545 | auto szLowerName = g_nmApp->FunctionsInstance()->szLower(szRealName); |
| 546 | return szLowerName; |
| 547 | } |
| 548 | |
| 549 | bool CFunctions::IsSafeModeEnabled() |
| 550 | { |
no test coverage detected