| 458 | } |
| 459 | |
| 460 | CString 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 | |
| 478 | CString CRegistryManagerView::GetValueDetails(const RegistryItem& item) const { |
| 479 | ATLASSERT(!item.Key); |