MCPcopy Create free account
hub / github.com/PlayFab/gsdk / getExecutablePath

Function getExecutablePath

cpp/testapps/cppWindowsRunnerGame/main.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

getExecutableDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected