The idea for this file is to put all of the Windows-dependent code in it. That way if you want to port your game to Linux or Mac OS then you don't have to go all through your code to make changes. I only made minor changes to the book's code for main.cpp. Here they are: