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

Method TryQueryReflectionKey

external/WinReg/WinReg.hpp:2436–2450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2434
2435
2436inline RegExpected<RegKey::KeyReflection> RegKey::TryQueryReflectionKey() const
2437{
2438 using ReturnType = RegKey::KeyReflection;
2439
2440 BOOL isReflectionDisabled = FALSE;
2441 LSTATUS retCode = ::RegQueryReflectionKey(m_hKey, &isReflectionDisabled);
2442 if (retCode != ERROR_SUCCESS)
2443 {
2444 return detail::MakeRegExpectedWithError<ReturnType>(retCode);
2445 }
2446
2447 KeyReflection keyReflection = isReflectionDisabled ? KeyReflection::ReflectionDisabled
2448 : KeyReflection::ReflectionEnabled;
2449 return RegExpected<ReturnType>{ keyReflection };
2450}
2451
2452
2453inline void RegKey::DeleteValue(const std::wstring& valueName)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected