| 25 | const std::string kGrServiceName = "GammaRayService"; |
| 26 | |
| 27 | std::wstring GetModulePathW(HMODULE hModule) |
| 28 | { |
| 29 | const int maxPath = 4096; |
| 30 | wchar_t szFullPath[maxPath] = { 0 }; |
| 31 | ::GetModuleFileNameW(hModule, szFullPath, maxPath); |
| 32 | ::PathRemoveFileSpecW(szFullPath); |
| 33 | return {szFullPath}; |
| 34 | } |
| 35 | |
| 36 | std::string GetModulePath(HMODULE hModule) |
| 37 | { |