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

Method BuildKeyPath

WinArk/View.cpp:525–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525HTREEITEM CRegistryManagerView::BuildKeyPath(const CString& path, bool accessible) {
526 auto hItem = path[0] == L'\\' ? m_hRealReg : m_hStdReg;
527 CString name;
528 int start = path[0] == L'\\' ? 10 : 0;
529 TreeHelper th(m_Tree);
530 while (!(name = path.Tokenize(L"\\", start)).IsEmpty()) {
531 auto hChild = th.FindChild(hItem, name);
532 if (hChild) {
533 hItem = hChild;
534 continue;
535 }
536 hItem = InsertKeyItem(hItem, name, NodeType::Key | (accessible ? NodeType::None : NodeType::AccessDenied));
537 }
538 return hItem;
539}
540
541HTREEITEM CRegistryManagerView::GotoKey(const CString& path, bool knownToExist) {
542 CString spath(path);

Callers

nothing calls this directly

Calls 2

IsEmptyMethod · 0.80
FindChildMethod · 0.80

Tested by

no test coverage detected