process
-
Hi everyone could you explain about GetProcessesByName,I saw MSDN but I could'nt understand is it true? GetProcessesByName same with GetProcessById ? GetProcessById needs to a PID and return a process but GetProcessesByName needs to process name(its really process name or application name?) and return arrays of processes
-
Hi everyone could you explain about GetProcessesByName,I saw MSDN but I could'nt understand is it true? GetProcessesByName same with GetProcessById ? GetProcessById needs to a PID and return a process but GetProcessesByName needs to process name(its really process name or application name?) and return arrays of processes
The MSDN text is pretty clear - you feed it the name of the executable file, and it returns al the processes that are currently running from that file:
Process\[\] procs = Process.GetProcessesByName("chrome");
Will give you a list of all the processes running the Chrome browser.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.