MCPcopy Create free account
hub / github.com/WinMerge/winmerge / LoadRegistryFromFile

Function LoadRegistryFromFile

Src/Environment.cpp:214–219  ·  view source on GitHub ↗

* @brief Load registry keys from .reg file if existing .reg file */

Source from the content-addressed store, hash-verified

212 * @brief Load registry keys from .reg file if existing .reg file
213 */
214bool LoadRegistryFromFile(const String& sRegFilePath)
215{
216 if (paths::DoesPathExist(sRegFilePath) != paths::IS_EXISTING_FILE)
217 return false;
218 return launchProgram(_T("reg.exe import \"") + sRegFilePath + _T("\""), SW_HIDE);
219}
220
221/**
222 * @brief Save registry keys to .reg file if existing .reg file

Callers 2

InitInstanceMethod · 0.85
TEST_FFunction · 0.85

Calls 2

DoesPathExistFunction · 0.85
launchProgramFunction · 0.85

Tested by 1

TEST_FFunction · 0.68