Skip to content

x/sys/windows: return more information from Query #25655

@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)?

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 want to use sys/windows/svc/mgr Query() get the specifed service info

What did you expect to see?

I hope it can return more additional info, such as Win32ExitCode, ServiceType. It is best to return service PID.

What did you see instead?

Now this function only return State and Accepts.

service PID should call QueryServiceStatusEx, but now Query() call QueryServiceStatus, i see windows api doc says QueryServiceStatus has been superseded by the QueryServiceStatusEx function.

So whether use QueryServiceStatusEx replace QueryServiceStatus in Query()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions