• Advertisement
Sign in to follow this  

How to identify two same process ?

This topic is 3186 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a question to ask you. If I open two programs, the program's name is same, so there are two same process. FindWindow can get one of them, if I don't close one, FindWindow can't find another. So How can I get another when I don't close them?

Share this post


Link to post
Share on other sites
Advertisement
The idea is to use something unique that can identify a process. Like a process id.

This article can help: Link and this one: Link

Share this post


Link to post
Share on other sites
Take a look at CreateToolHelp32Snapshot(), it should be exactly what you need.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement