| 151 | } |
| 152 | |
| 153 | void 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 | |
| 171 | void CKernelPoolView::UpdateVisible() { |
| 172 | int page = GetCountPerPage(); |