SuspendThread function kernel32
Suspends the specified thread.
To learn more, see learn.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-suspendthread.
Implementation
Win32Result<int> SuspendThread(HANDLE hThread) {
resolveGetLastError();
final result_ = _SuspendThread(hThread);
return .new(value: result_, error: GetLastError());
}