Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

Creating a New Process

In some very large applications, you may want to create new processes that include their own memory space and are independent of the process that created them. To do this, you can use CreateProcess().

In short, CreateProcess() takes a filename for an executable file that will be run in the new process. CreateProcess() also takes 27 other parameters, however, either directly or indirectly. Because CreateProcess() seldom is used by the majority of Win32 applications, you won't look at the details of it here. If you do need to do this, however, you will be relieved to know that most of the parameters to CreateProcess() have reasonable default values.

Share ThisShare This

Informit Network