C# WMI Process Differentiation!?
Posted
by Goober
on Stack Overflow
See other posts from Stack Overflow
or by Goober
Published on 2010-04-09T17:41:47Z
Indexed on
2010/04/09
17:43 UTC
Read the original article
Hit count: 357
Scenario
I have a method that returns a list of processes using WMI. If I have 3 processes running (all of which are C# applications) - and they all have THE SAME PROCESS NAME but different command line arguments, how can I differentiate between them If I want to start them or terminate them!?
Thoughts
As far as I can see, I physically cannot differentiate between them, at least not without having to use the Handle, but that doesn't tell me which one of them got terminated because the others will still sit there with the same name........
....really stumped, help greatly appreciated!
© Stack Overflow or respective owner