typedef union _KSTACK_COUNT
{
    volatile long Value;
    struct
    {
        volatile unsigned long State : 3;
        unsigned long StackCount : 29;
    };
} KSTACK_COUNT, *PKSTACK_COUNT;