Posted: Fri Dec 16, 2016 5:43 pm Post subject: C++ getting PID by name help
I am not really sure how to start or word this.
I managed to find how to get the process ID by name, but i am having a new dilemma.
I need to get the process ID of an exe by the name of the exe, but if the exe is already open it needs to ignore those process ids.
For example.
If i have 6 "notepad.exe" open, i need my application to ignore the 6 already running and wait for a new one to open, then save that process id in a variable.
On load, go through all processes and save the ID of each notepad.exe.
Then, on a timer, go through all processes again and again until you find a new ID.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum