Process-Related Commands

In many ways, the commands for creating and managing processes resemble the commands for creating and managing threads, which you saw in Chapter 14. To create a process, you specify security attributes and receive a handle. With the handle, you can manage the process; for example, you can change the priority of the process or terminate it. Even after a process stops running, it continues to exist as long as any handles to it remain open. To destroy a process, close all of its handles.

The following sections describes the Win32 API commands for creating processes. The AnonPipe and NamedPipe demos, described later in this chapter, demonstrate most of the commands explained here.

© 1998 SYBEX Inc. All rights reserved.