Question: C PROGRAMMING Write a console program that prompts the user with a list of the following five programs that come with Windows, notepad.exe, cmd.exe, nslookup.exe,

C PROGRAMMING

Write a console program that prompts the user with a list of the following five programs that come with Windows, notepad.exe, cmd.exe, nslookup.exe, charmap.exe, and wordpad.exe. Have the five programs numbered in the list from 1 to 5. Have the user choose one of the five programs by inputting a number between 1 and 5. Then your program should use the Windows function CreateProcessA() to start up the program that the user chose. After the process has been created, output a message that states the PID of the newly created process. After your program launches the user's choice, your program should once again prompt the user with the list of available programs and let the user launch another program (but see the next two paragraphs for two exceptions). Your program should keep on letting the user launch programs until the user enters zero.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!