New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/sys/windows/svc/mgr: Ability to enumerate services #20596
Comments
Sounds reasonable. How are you planing to use it? I am asking because EnumServicesStatusEx has some parameters to filter the list. I am trying to decide what new API will look like? Thank you Alex |
Ideally, as little filtering as possible should be done by the package, then the application developer can do it themselves. In normal Windows The existing |
CL https://golang.org/cl/45711 mentions this issue. |
@mappu what do you think about https://golang.org/cl/45711 ? Alex |
I think it looks good, a nice simple API. In the line |
Cool. Thank you.
Fixed. You can actually review code at https://golang.org/cl/45711 if you like. Alex |
Add API to list services installed on the system. Fixes golang/go#20596 Change-Id: Ifa2f20ef15ccb962bd21d03788ce931dd45f2630 Reviewed-on: https://go-review.googlesource.com/45711 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Feature request.
The
x/sys/windows/svc/mgr
package can create a new service, and delete or perform other operations on existing services. But there's no function to list the existing installed services.I know it's only an
/x/
package. But i think it's a functionality gap.It can be implemented via the
EnumServicesStatusEx
function.The text was updated successfully, but these errors were encountered: