Jim-with-a-J

Results 2 comments of Jim-with-a-J

I don't know golang, but I assume you query all the processes and filter down to those with a PPID matching the target (perhaps through multiple levels to catch grandchildren...

Would job objects help? https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects