[DllImport("ntdll.dll", SetLastError = true)] public static extern int NtTerminateThread( IntPtr ThreadHandle, int ExitStatus );
Microsoft documentation: Link
Last updated 1 year ago