Solved

Getting Parent or Child Processes in NT

Posted on 1997-07-16
2
213 Views
Last Modified: 2013-11-20
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
Comment
Question by:dpolyak
2 Comments
 
LVL 1

Accepted Solution

by:
kraken earned 100 total points
ID: 1302601
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
 
LVL 1

Author Comment

by:dpolyak
ID: 1302602
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Host to IP 7 78
isEverywhere  challenge 19 78
Excel file not created as expected 7 72
Problem to App source 6 41
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question