Jump to content
Sign in to follow this  
lyledg

Get PID of second Process

Recommended Posts

lyledg

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

Share this post


Link to post
Share on other sites
Thatsgreat2345

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.

Share this post


Link to post
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
Sign in to follow this  

×