x/sys/windows: get Windows services status without all access permissions #60573
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
Next exchange with #48777
Why not change the fonction like this :
func (m *Mgr) OpenService(name string, right int) (*Service, error) { if right == nil { right =windows.SERVICE_ALL_ACCESS } h, err := windows.OpenService(m.Handle, syscall.StringToUTF16Ptr(name), right) if err != nil { return nil, err } return &Service{Name: name, Handle: h}, nil }
The text was updated successfully, but these errors were encountered: