In the initialization I noticed that I could run more than one copy of the application. It looks as though it should be FindWindow(NULL, gameTitle) instead. That way it looks for the window name rather than the class name. I could be wrong, but I have a second edition book with it coded the same way and it looks backwards to me.
Elegant code is finding the simplest solutions to the most complex puzzles.