microsoft / wil

Windows Implementation Library
MIT License
2.57k stars 234 forks source link

Feature request: Add functions to enumerate Toolhelp32Snapshot #436

Open HO-COOH opened 7 months ago

HO-COOH commented 7 months ago

Found myself often needed to enumerate modules/threads of a process, something you do with CreateToolhelp32Snapshot. Its current usage is a bit chunky with needing to first call xxxFirst followed with xxxNext. Everytime I just roll up a helper function to make the code more readable. As a result, a generic helper function for it would be great.