MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / GetAll

Method GetAll

includes/ModuleList.hpp:105–120  ·  view source on GitHub ↗

Gets handles to all loaded modules with given name

Source from the content-addressed store, hash-verified

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
122private:
123 void EnumerateInternal(HMODULE* modules, SearchLocation location, size_t numModules)

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected