typedef struct _HANDLE_TABLE_ENTRY
{
    union
    {
        void *Object;
        unsigned long ObAttributes;
        HANDLE_TABLE_ENTRY_INFO *InfoTable;
        unsigned __int64 Value;
    };
    union
    {
        unsigned long GrantedAccess;
        struct
        {
            unsigned short GrantedAccessIndex;
            unsigned short CreatorBackTraceIndex;
        };
        unsigned long NextFreeTableEntry;
    };
} HANDLE_TABLE_ENTRY, *PHANDLE_TABLE_ENTRY;