I often want to get a process's starter process, the process were I am child of [not in sense of ProcessGroups]. I think the Net Framework's [System.Diagnostics.]Process should contain ether a property "ParentProcessId" or just a method [could be a bit expensive] like "GetParentProcessId".
So far, I have not found anything in the frameworks which helps with this problem.
The fact, that System.Management's process implementation contains this already,
it looks like, it could be cheaply implemented.
For several reasons, for such a simple thing, WMI is really no option.
In the Win32Api is "Process32First" [I think, since windows 2000].
Thanks a lot!