I would like to determine the process ID of the parent process for an arbitrary process on Windows.
I need this method to work with both x64 and x32.
Any ideas / sample code to make this happen. System.Diagnositics.Process does not include this information.
I am a bit worried about using the apis dashboard because they are 32 bit in nature.
Additional Information:
The solution of the performance counter in the FAQ is : (PerformanceCounter ("Process", "Creating a process identifier", procName);) scares me because it does not allow you to enter a process identifier, instead you specify a process by name so that all this can become rude form when you have several children.
source
share