// wdm.h
NTSTATUS PsTerminateSystemThread(
[in] NTSTATUS ExitStatus
);
View the official Windows Driver Kit DDI reference
No description available.
The PsTerminateSystemThread routine terminates the current system thread.
ExitStatus
[in]Specifies the status of the terminating system thread.
PsTerminateSystemThread does not return if it successfully terminates the calling thread. If the routine cannot terminate the thread (for example, if the thread is not a system thread), the routine returns an error NTSTATUS value.
A system thread calls PsTerminateSystemThread to terminate itself. A driver that creates its own threads must ensure that each such thread terminates. The driver must not terminate any threads that the system or other drivers created.