MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / GetModulePathW

Function GetModulePathW

src/service/service_main.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25const std::string kGrServiceName = "GammaRayService";
26
27std::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
36std::string GetModulePath(HMODULE hModule)
37{

Callers 1

GetModulePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected