Get List Of Child Process from currentprocess!
-
Hi all, I want list of child processes from current process! Or a parent process of particular process! Or the parameters/argument of particular process (I am getting empty string in StartInfo.Arguments of process object, I dont know why! (its wpf application)) And I even getting the MainWindowTitle empty string of wpf application process! (even though I have set the System.Windows.Application.Current.MainWindow.Title = "ticker"; in the constructor of startup window!) Help me out! Thanks a lot in advance! Chears! Divyesh Chapaneri
-
Hi all, I want list of child processes from current process! Or a parent process of particular process! Or the parameters/argument of particular process (I am getting empty string in StartInfo.Arguments of process object, I dont know why! (its wpf application)) And I even getting the MainWindowTitle empty string of wpf application process! (even though I have set the System.Windows.Application.Current.MainWindow.Title = "ticker"; in the constructor of startup window!) Help me out! Thanks a lot in advance! Chears! Divyesh Chapaneri
As far as I know, there's no concept in windows of "child processes". If you want to know what processes were spawned by a given process, that process has to keep track of them and provide some sort of function that allows you to discover those child processes. I guess an alternative would be to write a windows service that watched for the appropriate system messages, at which time you could capture the originating process. In other words, you have to be a programmer.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
As far as I know, there's no concept in windows of "child processes". If you want to know what processes were spawned by a given process, that process has to keep track of them and provide some sort of function that allows you to discover those child processes. I guess an alternative would be to write a windows service that watched for the appropriate system messages, at which time you could capture the originating process. In other words, you have to be a programmer.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001John Simmons / outlaw programmer wrote:
you have to be a programmer
Wash your mouth out with soap! :laugh:
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
As far as I know, there's no concept in windows of "child processes". If you want to know what processes were spawned by a given process, that process has to keep track of them and provide some sort of function that allows you to discover those child processes. I guess an alternative would be to write a windows service that watched for the appropriate system messages, at which time you could capture the originating process. In other words, you have to be a programmer.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001Yes, there is. I don't know the details, however 1. Task Manager has context menu offerings called "End Process" as well as "End Process Tree"; 2. And this bunch of programmers[^] seems to know more about it. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Getting an article published on CodeProject now is hard and not sufficiently rewarded.
-
John Simmons / outlaw programmer wrote:
you have to be a programmer
Wash your mouth out with soap! :laugh:
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
Dont post any message if you dont know the answer! Dont think that you are smartest person in this planet!
-
Dont post any message if you dont know the answer! Dont think that you are smartest person in this planet!
Was that directed at you? No. So what is your problem?
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
Yes, there is. I don't know the details, however 1. Task Manager has context menu offerings called "End Process" as well as "End Process Tree"; 2. And this bunch of programmers[^] seems to know more about it. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Getting an article published on CodeProject now is hard and not sufficiently rewarded.
Yes its there, if you have used the tool Process Explorer of systeminternals you will have better understanding how the processes works in windows. And I am working with c# and I dont have any class/object PROCESSENTRY32 in c# framework! Thanks, Divyesh
-
Yes its there, if you have used the tool Process Explorer of systeminternals you will have better understanding how the processes works in windows. And I am working with c# and I dont have any class/object PROCESSENTRY32 in c# framework! Thanks, Divyesh
So you need to call native code through P/Invoke, see here[^]. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
-
So you need to call native code through P/Invoke, see here[^]. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Very nice artical/website! I am working on it, ll update you the status! Thanks