MCPcopy Create free account
hub / github.com/chrxh/alien / LoadKey

Method LoadKey

external/WinReg/WinReg.hpp:2555–2564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2553
2554
2555inline void RegKey::LoadKey(const std::wstring& subKey, const std::wstring& filename)
2556{
2557 Close();
2558
2559 LSTATUS retCode = ::RegLoadKeyW(m_hKey, subKey.c_str(), filename.c_str());
2560 if (retCode != ERROR_SUCCESS)
2561 {
2562 throw RegException{ retCode, "RegLoadKeyW failed." };
2563 }
2564}
2565
2566
2567inline RegResult RegKey::TryLoadKey(const std::wstring& subKey,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected