You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: desktop_platform_windows.go
    path of file: ./repos/stash/internal/desktop
    
    the code of the file until where you have to start completion: //go:build windows
// +build windows

package desktop

import (
	"os/exec"
	"syscall"
	"unsafe"

	"github.com/go-toast/toast"
	"github.com/stashapp/stash/pkg/logger"
	"golan
    
func isService() bool {
	result, err := svc.IsWindowsService()
	if err != nil {
		logger.Errorf("Encountered error checking if running as Windows service: %s", err.Error())
		return false
	}
	return result
}