Jump to content

Get PID of second Process


 Share

Recommended Posts

Hey folks

I have an executable called peimg.exe, that is spawned twice under the same name, and I am trying use STDOUTREAD to pipe this data to an edit control for the SECOND process only.......

How do I get this done...please?

Cheers

Link to comment
Share on other sites

Well what I can think of is having the program check for the process, if it exists wait for the second one then grab is PID but distinguishing from 2 processes that are named the same is going to be hard especially if they start up at the same time. I'm curious as to why there are 2 of the same processes, if you provide some more information a different path may be able to be taken to avoid any problems of the 2 processes conflicting.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...