The System.Diagnostics namespace contains functions that allow you to manage processes, threads, eventlogs and performance information.
The System.Diagnostics.Process object gives you access to functionality enabling you to manage system processes and threads.
Here’s a code example for you, assuming that you already have a Process object named theProcess.