Gets handles to all loaded modules with given name
| 103 | |
| 104 | // Gets handles to all loaded modules with given name |
| 105 | std::vector<HMODULE> GetAll(const wchar_t* moduleName) const |
| 106 | { |
| 107 | // If vector is empty then we're trying to call it without calling Enumerate first |
| 108 | assert(m_moduleList.size() != 0); |
| 109 | |
| 110 | std::vector<HMODULE> results; |
| 111 | for (auto& e : m_moduleList) |
| 112 | { |
| 113 | if (_wcsicmp(moduleName, std::get<1>(e).c_str()) == 0) |
| 114 | { |
| 115 | results.push_back(std::get<0>(e)); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | return results; |
| 120 | } |
| 121 | |
| 122 | private: |
| 123 | void EnumerateInternal(HMODULE* modules, SearchLocation location, size_t numModules) |