How to attach a new process instance to an existing process?

I have some process. And I know its processId. I need to create a new instance of Diagnostics.Process to attach to this known process. How to do it? Languages ​​- VB.Net or C #

0


a source to share


1 answer


The answer is very simple:



Process p = Process.GetProcessById(procId)

      

+3


a source







All Articles