Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get List Of Child Process from currentprocess!

Get List Of Child Process from currentprocess!

Scheduled Pinned Locked Moved C#
csharpwpfhelp
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    divyesh1432
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • D divyesh1432

      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

      R Offline
      R Offline
      realJSOP
      wrote on last edited by
      #2

      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

      OriginalGriffO L 2 Replies Last reply
      0
      • R realJSOP

        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

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        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

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        D 1 Reply Last reply
        0
        • R realJSOP

          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

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          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.


          D 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            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

            D Offline
            D Offline
            divyesh1432
            wrote on last edited by
            #5

            Dont post any message if you dont know the answer! Dont think that you are smartest person in this planet!

            OriginalGriffO 1 Reply Last reply
            0
            • D divyesh1432

              Dont post any message if you dont know the answer! Dont think that you are smartest person in this planet!

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              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

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              1 Reply Last reply
              0
              • L Luc Pattyn

                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.


                D Offline
                D Offline
                divyesh1432
                wrote on last edited by
                #7

                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

                L 1 Reply Last reply
                0
                • D divyesh1432

                  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

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  So you need to call native code through P/Invoke, see here[^]. :)

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                  Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


                  D 1 Reply Last reply
                  0
                  • L Luc Pattyn

                    So you need to call native code through P/Invoke, see here[^]. :)

                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                    Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


                    D Offline
                    D Offline
                    divyesh1432
                    wrote on last edited by
                    #9

                    Very nice artical/website! I am working on it, ll update you the status! Thanks

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups