So what I'm trying to do is to GetProcessId from all processes with name "notepad" for example. Then do a foreach statement for all Ids found.
Int32 ProcID = GetProcessId(injecttext.Text);
Not sure if enough info to help is provided.
thanks in advance