// ntifs.h
BOOLEAN PsIsThreadTerminating(
[in] PETHREAD Thread
);
View the official Windows Driver Kit DDI referenceNo description available.
The PsIsThreadTerminating routine checks whether a thread is terminating.
Thread [in]A pointer to the thread to be checked for termination.
The PsIsThreadTerminating routine returns TRUE if the thread is terminating, otherwise FALSE.
For more information about using system threads and managing synchronization within a nonarbitrary thread context, see Driver Threads, Dispatcher Objects, and Resources.