MCPcopy Create free account
hub / github.com/codeyourweb/irma / GetExitCodeProcess

Function GetExitCodeProcess

w32.go:177–185  ·  view source on GitHub ↗

GetExitCodeProcess is a wrapper for the same WIN32 API function https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getexitcodeprocess

(hProcess windows.Handle)

Source from the content-addressed store, hash-verified

175// GetExitCodeProcess is a wrapper for the same WIN32 API function
176// https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getexitcodeprocess
177func GetExitCodeProcess(hProcess windows.Handle) uint32 {
178 var lpExitCode uint32 = 0
179 ret, _, _ := syscall.Syscall(procGetExitCodeProcess.Addr(), 2, uintptr(hProcess), uintptr(unsafe.Pointer(&lpExitCode)), 0)
180 if ret != 0 {
181 return lpExitCode
182 }
183
184 return 0
185}

Callers 1

KillProcessByIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected