Getting the process parent that started a process / task?


Sep 27, 2016
Programming Experience
I'm starting up a Async task and I need to be able to shut down the calling task then re-open it once I've finished with the "Child" process. I'm thinking of a command line Fork, so I have not found out a way to achieve this but I want to be able to get the parent 'Process' who started the task so I can re open it again.

Thanks so much for the reply, I was looking at ManagementClass before, though it just lists the processes that are currently active, correct me if I'm wrong but this won't return the process that started the async task, will it? I don't even know if the functionality I'm looking for exists.

With ManagementClass I would have to pass the original process name as a argument to get it?
Top Bottom