Post · 1 min read· p. 1529

KWAIT_STATUS_REGISTER

The KWAIT_STATUS_REGISTER union (formally _KWAIT_STATUS_REGISTER) was introduced for Windows 7. It has no known purpose outside the KTHREAD, which has one as its WaitRegister member. The union is of a UCHAR named Flags with a structure of UCHAR bit fields:

MaskDefinitionVersions
0x03 (6.1 to 6.3); 0x07UCHAR State : 2;6.1 to 6.3
UCHAR State : 3;10.0 and higher
0x04 (6.1 to 6.3); 0x08UCHAR Affinity : 1;6.1 and higher
0x08 (6.1 to 6.3); 0x10UCHAR Priority : 1;6.1 and higher
0x10 (6.1 to 6.3); 0x20UCHAR Apc : 1;6.1 and higher
0x20 (6.1 to 6.3); 0x40UCHAR UserApc : 1;6.1 and higher
0x40 (6.1 to 6.3); 0x80UCHAR Alert : 1;6.1 and higher
UCHAR Unused : 1;6.1 to 6.3

 The multi-bit State takes its values from the KWAIT_STATE enumeration.