MCPcopy Create free account
hub / github.com/NtQuery/Scylla / addModuleListToRootElement

Method addModuleListToRootElement

Scylla/TreeImportExport.cpp:97–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void TreeImportExport::addModuleListToRootElement(TiXmlElement * rootElement, const std::map<DWORD_PTR, ImportModuleThunk> & moduleList)
98{
99 std::map<DWORD_PTR, ImportModuleThunk>::const_iterator it_mod;
100 for(it_mod = moduleList.begin(); it_mod != moduleList.end(); it_mod++)
101 {
102 const ImportModuleThunk& importModuleThunk = it_mod->second;
103
104 TiXmlElement* moduleElement = getModuleXmlElement(&importModuleThunk);
105
106 std::map<DWORD_PTR, ImportThunk>::const_iterator it_thunk;
107 for(it_thunk = importModuleThunk.thunkList.begin(); it_thunk != importModuleThunk.thunkList.end(); it_thunk++)
108 {
109 const ImportThunk& importThunk = it_thunk->second;
110
111 TiXmlElement* importElement = getImportXmlElement(&importThunk);
112
113 moduleElement->LinkEndChild(importElement);
114 }
115
116 rootElement->LinkEndChild(moduleElement);
117 }
118}
119
120TiXmlElement * TreeImportExport::getModuleXmlElement(const ImportModuleThunk * importModuleThunk)
121{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected