MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetKeyDetails

Method GetKeyDetails

WinArk/View.cpp:460–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460CString CRegistryManagerView::GetKeyDetails(const RegistryItem& item) const {
461 if (item.Type == REG_KEY_UP)
462 return L"";
463
464 RegistryKey key;
465 if (!m_CurrentKey)
466 key = Registry::OpenKey(m_CurrentPath + (m_CurrentPath.IsEmpty() ? L"" : L"\\") + item.Name, KEY_QUERY_VALUE);
467 else
468 key.Open(m_CurrentKey.Get(), item.Name, KEY_QUERY_VALUE);
469 CString text;
470 if (key) {
471 DWORD values = 0;
472 auto subkeys = Registry::GetSubKeyCount(key, &values);
473 text.Format(L"Subkeys: %u, Values: %u", subkeys, values);
474 }
475 return text;
476}
477
478CString CRegistryManagerView::GetValueDetails(const RegistryItem& item) const {
479 ATLASSERT(!item.Key);

Callers

nothing calls this directly

Calls 3

IsEmptyMethod · 0.80
OpenMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected