This project is an example of using Win32 API SetTimer. Enveironment: Visual Studio Pro 2017, Windows10 x64. The window will close after 5 seconds. It also counts in the window.