MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetIcingaDataPath

Function GetIcingaDataPath

icinga-installer/icinga-installer.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84static std::string GetIcingaDataPath(void)
85{
86 char path[MAX_PATH];
87 if (!SUCCEEDED(SHGetFolderPath(nullptr, CSIDL_COMMON_APPDATA, nullptr, 0, path)))
88 throw std::runtime_error("SHGetFolderPath failed");
89 return std::string(path) + "\\icinga2";
90}
91
92static void MkDir(const std::string& path)
93{

Callers 5

UpgradeNSISFunction · 0.85
InstallIcingaFunction · 0.85
HandleLegacyDefinesFunction · 0.85
icinga.cppFile · 0.85
SetupServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected