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:

Mask Definition Versions
0x03 (6.1 to 6.3);
0x07
UCHAR State : 2;
6.1 to 6.3
UCHAR State : 3;
10.0 and higher
0x04 (6.1 to 6.3);
0x08
UCHAR Affinity : 1;
6.1 and higher
0x08 (6.1 to 6.3);
0x10
UCHAR Priority : 1;
6.1 and higher
0x10 (6.1 to 6.3);
0x20
UCHAR Apc : 1;
6.1 and higher
0x20 (6.1 to 6.3);
0x40
UCHAR UserApc : 1;
6.1 and higher
0x40 (6.1 to 6.3);
0x80
UCHAR 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.