Post · 1 min read· p. 1526

KTHREAD_STATE

From the very beginning of Windows, each thread has a one-byte summary of its state. The KTHREAD keeps this as its State member. Though this State is formally a UCHAR (and is volatile, starting with version 5.2), it takes its values from the KTHREAD_STATE enumeration.

Microsoft does not document the KTHREAD_STATE but Microsoft’s names and values are known from public symbol files for the kernel, starting with Windows Server 2003 (but excluding some versions, including Windows Server 2003 SP1 and Windows 7, for who knows what reason).

ValueNameVersions
0x00Initializedall
0x01Readyall
0x02Runningall
0x03Standbyall
0x04Terminatedall
0x05Waitingall
0x06Transitionall
0x07DeferredReady5.2 and higher
0x08GateWait5.2 SP1 and higher
GateWaitObsolete6.2 and higher
0x09WaitingForProcessInSwap10.0 and higher