TerminateThread function kernel32
Terminates a thread.
To learn more, see learn.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminatethread.
Implementation
Win32Result<bool> TerminateThread(HANDLE hThread, int dwExitCode) {
final result_ = TerminateThread_Wrapper(hThread, dwExitCode);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}