O'Reilly logo

Extending MFC Applications with the .NET Framework by Nishant Sivakumar, Tom Archer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Process Control

The System::Diagnostics namespace also includes the extremely useful Process class, which allows you to start and stop new processes, enumerate the running processes on the system, and retrieve information about any running process. You can also enumerate processes on a remote machine, but you may not start or stop processes on the remote machine. The Process class has several very useful properties, such as Process::Id, which exposes the unique process ID of a process; Process::Handle, which returns a process's native Win32 handle, and many more. You'll see some of the more useful methods and properties in action in this section.

Starting a New Process

Start a new process by calling the Process::Start method, which has four overloads. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required