Home Dashboard Directory Help
Search

Missing ParentProcessID in System.Diagnostics.Process by scamb


Status: 

Closed
 as Won't Fix Help for as Won't Fix


2
0
Sign in
to vote
Type: Suggestion
ID: 623533
Opened: 11/21/2010 5:12:02 AM
Access Restriction: Public
0
Workaround(s)
view

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
Details
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)
Sign in to post a workaround.