-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: Add EnumDependentServices method to Service struct #56766
Comments
CC @golang/windows |
Change https://go.dev/cl/451363 mentions this issue: |
I just reviewed your https://go.dev/cl/451363 CL. Let's continue our conversation there. Thank you. Alex |
Seems to have landed without a proposal acceptance but too late to do anything about that now. |
No change in consensus, so accepted. 🎉 |
Sorry about that. I did not know that changes like this one require proposal. Alex |
The mgr package does not provide a way to interact with the EnumDependentServicesW Windows API call. Usage of this call allows a user to list all Windows services which are dependent upon a given service. Without this API call, 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.
This functionality being missing is called out in a TODO within the code.
I propose:
ListDependentServices
which will return a slice of strings, listing all services dependent on the service.func (s *Service) ListDependentServices(serviceState Activity) ([]string, error)
The text was updated successfully, but these errors were encountered: