Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::deque<MODULEENTRY32> getModuleList()
- {
- std::deque<MODULEENTRY32> result;
- auto snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, 0);
- MODULEENTRY32 me;
- if (Module32First(snap, &me)){
- do {
- result.push_back(me);
- } while (Module32Next(snap, &me));
- }
- CloseHandle(snap);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement