PsIsThreadTerminating function (ntifs.h)

The PsIsThreadTerminating routine checks whether a thread is terminating.

Syntax

BOOLEAN PsIsThreadTerminating(
  [in] PETHREAD Thread
);

Parameters

[in] 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

Requirement Value
Minimum supported client Windows 2000
Target Platform Universal
Header ntifs.h (include Ntifs.h, FltKernel.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL

See also

PsGetProcessExitTime