Skip to content

x/sys/windows: Get windows service process id #25485

@pytimer

Description

@pytimer

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

set GOARCH=amd64
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions