Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/sys/windows: return more information from Query #25655
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Thanks for your reply. You are right, i want to add some fields to svc.Status.
Have i explained clearly?If not, you tell me.
svc.Status is populated from SERVICE_STATUS structure. For ProcessId we have to use SERVICE_STATUS_PROCESS instead. And service code in golang.org/x/sys/windows/svc uses SetServiceStatus to update service status. There is no SetServiceStatus alternative that takes SERVICE_STATUS_PROCESS instead of SERVICE_STATUS, so we cannot use SERVICE_STATUS_PROCESS in golang.org/x/sys/windows/svc .
The only way for you to get
Alternatively you could just use golang.org/x/sys/windows/svc/mgr.Service.Handle and call whatever Windows function you want to get what you want.
What do you think?