// Start starts service s. func (s *Service) Start(args []string) error { var p **uint16 if len(args) > 0 { vs := make([]*uint16, len(args)) for i, _ := range vs { vs[i] = syscall.StringToUTF16Ptr(args[i]) } p = &vs[0] } return winapi.StartService(s.Handle, uint32(len(args)), p) }
// Start starts service s. func (s *Service) Start(args []string) error { // log.Printf("Start: args: %v, len: %d\r\n", args, len(args)) var p **uint16 if len(args) > 0 { // vs := make([]*uint16, len(args)) vs := make([]*uint16, len(args)) for i, _ := range vs { vs[i] = syscall.StringToUTF16Ptr(args[i]) } // log.Printf("Start %v \r\n", vs) p = &vs[0] } return winapi.StartService(s.Handle, uint32(len(args)), p) }