Figure 17-5.
Enumerating the loaded modules within a running process
Starting and Stopping Processes Programmatically
The final aspects of the System.Diagnostics.Process type examined here are the Start() and
Kill() methods. As you can gather by their names, these members provide a way to program-
matically launch and terminate a process, respectively. For example, consider the static
StartAndKillProcess() helper method:
static void StartAndKillProcess()
{
Do'stlaringiz bilan baham: