# TerminateProcess

```csharp
[DllImport("coredll.dll")]
public static extern uint TerminateProcess(
   IntPtr hProcess,
   uint uExitCode
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess)
