| 82 | } |
| 83 | |
| 84 | std::string getExecutablePath() |
| 85 | { |
| 86 | HMODULE hModule = GetModuleHandleW(NULL); |
| 87 | WCHAR pathBuffer[MAX_PATH]; |
| 88 | GetModuleFileNameW(hModule, pathBuffer, MAX_PATH); |
| 89 | char ch[260]; |
| 90 | char DefChar = ' '; |
| 91 | WideCharToMultiByte(CP_ACP, 0, pathBuffer, -1, ch, 260, &DefChar, NULL); |
| 92 | return std::string(ch); |
| 93 | } |
| 94 | |
| 95 | std::string getExecutableDirectory() |
| 96 | { |
no outgoing calls
no test coverage detected