typedef struct _ERESOURCE
{
    LIST_ENTRY SystemResourcesList;
    OWNER_ENTRY *OwnerTable;
    short ActiveCount;
    unsigned short Flag;
    KSEMAPHORE *SharedWaiters;
    KEVENT *ExclusiveWaiters;
    OWNER_ENTRY OwnerEntry;
    unsigned long ActiveEntries;
    unsigned long ContentionCount;
    unsigned long NumberOfSharedWaiters;
    unsigned long NumberOfExclusiveWaiters;
    void *Reserved2;
    union
    {
        void *Address;
        unsigned __int64 CreatorBackTraceIndex;
    };
    unsigned __int64 SpinLock;
} ERESOURCE, *PERESOURCE;