MCPcopy Create free account
hub / github.com/M2Team/NanaRun / GetCurrentProcessModulePath

Function GetCurrentProcessModulePath

MinSudo/MinSudo.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 std::wstring GetCurrentProcessModulePath()
140 {
141 // 32767 is the maximum path length without the terminating null character.
142 std::wstring Path(32767, L'\0');
143 Path.resize(::GetModuleFileNameW(
144 nullptr, &Path[0], static_cast<DWORD>(Path.size())));
145 return Path;
146 }
147
148 std::wstring GetWorkingDirectory()
149 {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected