(handle windows.Handle, exitCode uint32)
| 171 | } |
| 172 | |
| 173 | func 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 | |
| 181 | func WTSGetActiveConsoleSessionID() (n uint32) { |
| 182 | r0, _, _ := syscall.Syscall(procWTSGetActiveConsoleSessionId.Addr(), 0, 0, 0, 0) |
no test coverage detected