Example service program that beeps.
The program demonstrates how to create Windows service and install / remove it on a computer. It also shows how to stop / start / pause / continue any service, and how to write to event log. It also shows how to use debug facilities available in debug package.
☞ MessageBeep Windows api is broken on Windows 7, so this example does not beep when runs as service on Windows 7.