Lab 7: Overview

This lab guides you through the process of terminating a process in Windows using the system call TerminateProcess() and then retrieving the exit code using GetExitCodeProcess().

Goals for Lab 7

During this lab, you will learn how to use:

  1. OpenProcess() to get the handle of a running process.

  2. TerminateProcess() to terminate a process forcefully.

  3. GetExitCodeProcess() to retrieve the exit code of a process