sys: golang.org/x/sys/windows/svc/example Files

Command example

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.

Package Files

beep.go install.go main.go manage.go service.go

Bugs

MessageBeep Windows api is broken on Windows 7, so this example does not beep when runs as service on Windows 7.

Package main imports 11 packages (graph). Updated 2016-04-16 with GOOS=windows. Refresh now. Tools for package owners.