Skip to content

x/sys/windows: get Windows services status without all access permissions #60573

@tguenneguez

Description

@tguenneguez

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 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions