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: Get windows service process id #25485
Comments
@pytimer I am OK with adding QueryServiceStatusEx to x/sys/windows package. Feel free to contribute that change yourself - https://golang.org/doc/contribute.html If it is too hard, let me know, and I will make the change myself. Alex |
Thank you for your reply. |
Change https://golang.org/cl/114215 mentions this issue: |
@alexbrainman I am already submit PR to fix this issue. https://go-review.googlesource.com/#/c/sys/+/114215 It is my first submit PR for golang/go, is there a problem with the push operation? Thanks. :) |
I just reviewed your CL, it was all fine. Please adjust your CL as per my instructions. Thank you. Alex |
Thanks. :) I have some things for now, and i will fix it on this week. |
@alexbrainman . I fix my CL according to your and Tobias Klauser instructions. Please check my CL if you have free time. Thanks. |
Cool.
Will do. Alex |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go environment
What did you do?
I am call windows api to get the specified name service status, include service process id.
What did you expect to see?
I expected golang/sys/windows package have QueryServiceStatusEx() function, it will return service status include process id.
What did you see instead?
Now golang/sys/windows package only have QueryServiceStatus() function, it not return pid.
So i want to call QueryServiceStatusEx() get service process id, but no function to implement it currently.I am write code to implement in my project, this feature whether need to add golang/sys/windows package?
Thanks for any help! :)
The text was updated successfully, but these errors were encountered: