MCPcopy Create free account
hub / github.com/comaps/comaps / GetPathToBinary

Function GetPathToBinary

libs/platform/platform_win.cpp:35–45  ·  view source on GitHub ↗

@return Full path to the executable file

Source from the content-addressed store, hash-verified

33
34/// @return Full path to the executable file
35static bool GetPathToBinary(std::string & outPath)
36{
37 // get path to executable
38 char pathBuf[MAX_PATH] = {0};
39 if (0 < ::GetModuleFileNameA(NULL, pathBuf, MAX_PATH))
40 {
41 outPath = pathBuf;
42 return true;
43 }
44 return false;
45}
46
47namespace platform
48{

Callers 1

PlatformMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected