MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / TerminateThread

Function TerminateThread

pkg/sys/zsyscall_windows.go:173–179  ·  view source on GitHub ↗
(handle windows.Handle, exitCode uint32)

Source from the content-addressed store, hash-verified

171}
172
173func TerminateThread(handle windows.Handle, exitCode uint32) (err error) {
174 r1, _, e1 := syscall.Syscall(procTerminateThread.Addr(), 2, uintptr(handle), uintptr(exitCode), 0)
175 if r1 == 0 {
176 err = errnoErr(e1)
177 }
178 return
179}
180
181func WTSGetActiveConsoleSessionID() (n uint32) {
182 r0, _, _ := syscall.Syscall(procWTSGetActiveConsoleSessionId.Addr(), 0, 0, 0, 0)

Callers 3

GetHandleWithTimeoutFunction · 0.92
CloseTimeoutFunction · 0.92
closeMethod · 0.92

Calls 1

errnoErrFunction · 0.70

Tested by

no test coverage detected