• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

Getting Parent or Child Processes in NT

Does anyone know of a way to get the parent of a process or a list of a process's child processes running on NT.  I know under Win95 you can use the toolhelp functions to get a PROCESSENTRY32 structure which has a parent process id.  Is there an equivalent for NT?  Thanks in advance.
0
dpolyak
Asked:
dpolyak
1 Solution
 
krakenCommented:
dpolyak -

You aren't going to like this answer, but here it is.

There is no way to determine which process created a given process in NT.  In NT, all processes run independently of each other, and do not retain their parenthood like they do in UNIX.  I wouldn't be surprised if the PROCESSENTRY32 technique for Windows 95 disappeared over the next couple of O/S releases, as Microsoft is moving toward NT.
0
 
dpolyakAuthor Commented:
Kracken -
thanks for the response.  Saved me a lot of time of hunting for the answer.  Found another way to accomplish what I needed.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now