On 27 March 2017 at 12:48, Aaryaman Vasishta jem456.vasishta@gmail.com wrote:
François had posted an attachment in the comments containing a related implementation which you could refer. Hope it helps! You can find it here https://bugs.winehq.org/show_bug.cgi?id=39644#c1
There's an issue with the implementation in that attachment though. Process32First() and Process32Next() will change the current position in the snapshot, so using them in a recursive function like that will potentially skip over some processes.