mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
ref: https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getprocessid Document does not say anything about return value, but when I use 0 for HANDLE, GetProcessId returns 0 with ERROR_INVALID_HANDLE from GetLastError(). Change-Id: Ib6782ccd5a4917e93ddbcf18c533921b12c67e3b Reviewed-on: https://go-review.googlesource.com/c/sys/+/180924 Reviewed-by: Marc-Antoine Ruel <maruel@google.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>