PsIsThreadTerminating function

The PsIsThreadTerminating routine checks whether a thread is terminating.

Syntax

NTKERNELAPI BOOLEAN PsIsThreadTerminating(
  PETHREAD Thread
);

Parameters

Thread

A pointer to the thread to be checked for termination.

Return Value

The PsIsThreadTerminating routine returns TRUE if the thread is terminating, otherwise FALSE.

Remarks

For more information about using system threads and managing synchronization within a nonarbitrary thread context, see Driver Threads, Dispatcher Objects, and Resources.

Requirements

   
Windows version Available in Microsoft Windows 2000 and later Windows operating systems.
Target Platform Universal
Header ntifs.h (include Ntifs.h, FltKernel.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<= DISPATCH_LEVEL"

See Also

PsGetProcessExitTime