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
84std::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
95std::string getExecutableDirectory()
96{

Callers 1

getExecutableDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected