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

Method AddTag

WinArk/KernelPoolView.cpp:153–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void CKernelPoolView::AddTag(const SYSTEM_POOLTAG& info, int index) {
154 char tag[5] = { 0 };
155 ::CopyMemory(tag, &info.Tag, 4);
156 auto item = std::make_shared<TagItem>();
157 item->Tag = CStringA(tag);
158
159 item->TagInfo = info;
160 item->Index = index;
161
162 if (auto it = m_TagSource.find(item->Tag); it != m_TagSource.end()) {
163 item->SourceName = it->second.first;
164 item->SourceDesc = it->second.second;
165 }
166
167 m_Tags.push_back(item);
168 m_TagsMap.insert({ info.TagUlong, item });
169}
170
171void CKernelPoolView::UpdateVisible() {
172 int page = GetCountPerPage();

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected