What's the best way to enumerate the child processes of the currently running process under Win32? I can think of a couple of ways to do it, but they seem overly complicated and slow. Here's the requirements for the solution:
- Specifically I need to know if any there are any processes currently running which were started by the current process.
- Will be running on WinXP and should not require distributing special DLL's.
- Should not require a lot of CPU overhead (it will be running periodically in the background).
- I'll eventually be writing this in Delphi, but I can convert from whatever language you have the code in. Mostly I'm looking for the most efficient set of Win32 API's to use.
Thanks!