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.
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 callxxxFirst
followed withxxxNext
. 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.