TerminateThread function kernel32

int TerminateThread(
  1. int hThread,
  2. int dwExitCode
)

Terminates a thread.

BOOL TerminateThread(
  HANDLE hThread,
  DWORD  dwExitCode
);

Implementation

int TerminateThread(int hThread, int dwExitCode) =>
    _TerminateThread(hThread, dwExitCode);