| commit | dbd8f99a5ea6966d2aa742c744e685f3299419d7 | [log] [tgz] |
|---|---|---|
| author | Sebastian Soto <ssoto@redhat.com> | Fri Nov 18 10:22:56 2022 -0500 |
| committer | Alex Brainman <alex.brainman@gmail.com> | Fri Apr 14 09:16:30 2023 +0000 |
| tree | aa6267e216d04c0b0316fe4eb7a93a245e82d95d | |
| parent | f25ff604a2a41138652010750727a685a8cc9de7 [diff] |
windows: add Service.ListDependentServices This method allows a user to list all Windows services which are dependent upon a given service. This commit makes use of the EnumDependentServices Windows API call. Without this, a user would have to iterate through each service on the system, and check if the given service is listed in each service's dependencies list. The implementation of ListDependentServices is mostly the same as Mgr.ListServices, as the API calls behave in the same way. Fixes golang/go#56766 Change-Id: I9ec18c97afd02f48deef691ccdd5c26d6501add1 Reviewed-on: https://go-review.googlesource.com/c/sys/+/451363 Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Benny Siegert <bsiegert@gmail.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.