MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetSpecialFolderPath

Function GetSpecialFolderPath

src/util.cpp:720–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718
719#ifdef WIN32
720boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate)
721{
722 namespace fs = boost::filesystem;
723
724 char pszPath[MAX_PATH] = "";
725
726 if(SHGetSpecialFolderPathA(NULL, pszPath, nFolder, fCreate))
727 {
728 return fs::path(pszPath);
729 }
730
731 LogPrintf("SHGetSpecialFolderPathA() failed, could not obtain requested path.\n");
732 return fs::path("");
733}
734#endif
735
736void runCommand(std::string strCommand)

Callers 2

GetDefaultDataDirFunction · 0.85
StartupShortcutPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected