typedef struct _KERNEL_STACK_SEGMENT
{
    unsigned __int64 StackBase;
    unsigned __int64 StackLimit;
    unsigned __int64 KernelStack;
    unsigned __int64 InitialStack;
    unsigned __int64 ActualLimit;
} KERNEL_STACK_SEGMENT, *PKERNEL_STACK_SEGMENT;