From CodeProject:
This article shows how to create a basic Windows Service in C++. Services are very useful in many development scenarios depending on the architecture of the application.Background There are not many Windows Service examples that I found in C++. I used MSDN to write this very basic Windows service.