mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
The QueryServiceDynamicInformation API makes it possible to determine why a service started. This is declared as an optional function because the API is Win8+. Reference: https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc-queryservicedynamicinformation Change-Id: I18e9a95b35f8c37d94c9900626c1785f425701dc Reviewed-on: https://go-review.googlesource.com/c/sys/+/358394 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>