Assignment Description
In this rst programming assignment, you will write a C++ program, called
MyApplications, that runs a number of executable programs in child pro-
cesses. You must use the CreateProcess() Win32 call to spawn a child pro-
cess. Because the parent and the child processes have their own copies of
the data, it will be necessary for the child to load another program into its
address space. You will need to specify this program in CreateProcess(). It
is this separate program that will run as a child process.
Your program will be GUI-based, as shown in Figure 1 (you may be
creative as far as GUI design is concerned!!). The left side window will
include a number of standard applications, such as FireFox, NotePad, etc.
An instance of these programs will be created once you click the appropriate
button. The right side of the window will consist of a check box. If the check
box is ticket then the parent process will wait for the child process. If the
check box is not checked the parent process will not wait for the child.
3 Useful Hint
In [SGG09] gure 3.12, there is an example program showing how to create a
separate process using the Win32 API. It is recommended that you study the
program and understand how it works. Get this program up and running!
Understanding what goes on in this sample program will help you implement
the required programs.
Note that the API to Create Process have changed. The second argument
used to be a c-string it is now a LPWSTR. Please see the code example in
Figure 2 for how to use the updated API.
For Program Implementation details see attachement please..
Max pid $50
Deadline 21/03/2010.