Missing ParentProcessID in System.Diagnostics.Process - by scamb

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 623533 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 11/21/2010 5:12:02 AM
Access Restriction Public

Description

Hello !

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!

br++scamb
Sign in to post a comment.
Posted by Microsoft on 11/21/2010 at 7:22 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)