MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / programFilesFolder

Function programFilesFolder

src/installer/gui/windows/utils/utils.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223wstring programFilesFolder()
224{
225 TCHAR programFilesPath[MAX_PATH];
226 BOOL result = ::SHGetSpecialFolderPath(0, programFilesPath, CSIDL_PROGRAM_FILES, FALSE);
227 if (!result) {
228 spdlog::error(L"programFilesFolder - SHGetSpecialFolderPath failed, using default");
229 return wstring(L"C:\\Program Files");
230 }
231
232 return wstring(programFilesPath);
233}
234
235bool isInstallerPathInProgramFilesX86(const std::wstring &installerPath)
236{

Callers 3

defaultInstallPathFunction · 0.85
isSystemProtectedFunction · 0.85
RunSecondPhaseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected